org.ow2.util.ee.metadata.common.api
Interface ICommonMethodMetadata<C extends ICommonClassMetadata<C,M,F>,M extends ICommonMethodMetadata<C,M,F>,F extends ICommonFieldMetadata<C,M,F>>

Type Parameters:
C - the common interface for class metadata
M - the common interface for method metadata
F - the common interface for field metadata
All Superinterfaces:
IAnnotationResource, IEjbEJB, IHandlerChain, IMethodMetadata<C,M,F>, IPersistenceContext, IPersistenceUnit, ISharedMetadata, IWebServiceRef, Serializable

public interface ICommonMethodMetadata<C extends ICommonClassMetadata<C,M,F>,M extends ICommonMethodMetadata<C,M,F>,F extends ICommonFieldMetadata<C,M,F>>
extends ISharedMetadata, IMethodMetadata<C,M,F>

The common interface for method metadata.

Author:
Gael Lalire

Method Summary
 boolean isPostConstruct()
           
 boolean isPreDestroy()
           
 void setPostConstruct(boolean postConstruct)
          Sets true if method has @PostConstruct.
 void setPreDestroy(boolean preDestroy)
          Sets true if method has @PreDestroy.
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IEjbEJB
getJEjbEJB, setJEjbEJB
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IAnnotationResource
getJAnnotationResource, setJAnnotationResource
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IPersistenceContext
getJavaxPersistenceContext, isPersistenceContext, setJavaxPersistenceContext
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IPersistenceUnit
getJavaxPersistenceUnit, isPersistenceUnit, setJavaxPersistenceUnit
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IWebServiceRef
getJaxwsWebServiceRef, setJaxwsWebServiceRef
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IHandlerChain
getJwsHandlerChain, setJwsHandlerChain
 
Methods inherited from interface org.ow2.util.scan.api.metadata.IMethodMetadata
getClassMetadata, getJMethod, setClassMetadata, setJMethod
 

Method Detail

isPostConstruct

boolean isPostConstruct()
Returns:
true if method has @PostConstruct.

setPostConstruct

void setPostConstruct(boolean postConstruct)
Sets true if method has @PostConstruct.

Parameters:
postConstruct - true/false.

isPreDestroy

boolean isPreDestroy()
Returns:
true if method has @PreDestroy.

setPreDestroy

void setPreDestroy(boolean preDestroy)
Sets true if method has @PreDestroy.

Parameters:
preDestroy - true/false.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.