org.apache.openejb.jee
Class Interceptor

java.lang.Object
  extended by org.apache.openejb.jee.Interceptor
All Implemented Interfaces:
JndiConsumer, Lifecycle, Session

public class Interceptor
extends Object
implements JndiConsumer, Session

The interceptorType element declares information about a single interceptor class. It consists of :

- An optional description. - The fully-qualified name of the interceptor class. - An optional list of around invoke methods declared on the interceptor class and/or its super-classes. - An optional list environment dependencies for the interceptor class and/or its super-classes. - An optional list of post-activate methods declared on the interceptor class and/or its super-classes. - An optional list of pre-passivate methods declared on the interceptor class and/or its super-classes.


Field Summary
protected  List<AroundInvoke> aroundInvoke
           
protected  List<Text> description
           
protected  KeyedCollection<String,EjbLocalRef> ejbLocalRef
           
protected  KeyedCollection<String,EjbRef> ejbRef
           
protected  KeyedCollection<String,EnvEntry> envEntry
           
protected  String id
           
protected  String interceptorClass
           
protected  KeyedCollection<String,MessageDestinationRef> messageDestinationRef
           
protected  KeyedCollection<String,PersistenceContextRef> persistenceContextRef
           
protected  KeyedCollection<String,PersistenceUnitRef> persistenceUnitRef
           
protected  List<LifecycleCallback> postActivate
           
protected  List<LifecycleCallback> postConstruct
           
protected  List<LifecycleCallback> preDestroy
           
protected  List<LifecycleCallback> prePassivate
           
protected  KeyedCollection<String,ResourceEnvRef> resourceEnvRef
           
protected  KeyedCollection<String,ResourceRef> resourceRef
           
protected  KeyedCollection<String,ServiceRef> serviceRef
           
 
Constructor Summary
Interceptor()
           
Interceptor(Class<?> interceptorClass)
           
Interceptor(String interceptorClass)
           
 
Method Summary
 void addAroundInvoke(String method)
           
 void addPostActivate(String method)
           
 void addPostConstruct(String method)
           
 void addPreDestroy(String method)
           
 void addPrePassivate(String method)
           
 List<AroundInvoke> getAroundInvoke()
           
 List<Text> getDescription()
           
 Collection<EjbLocalRef> getEjbLocalRef()
           
 Map<String,EjbLocalRef> getEjbLocalRefMap()
           
 Collection<EjbRef> getEjbRef()
           
 Map<String,EjbRef> getEjbRefMap()
           
 Collection<EnvEntry> getEnvEntry()
           
 Map<String,EnvEntry> getEnvEntryMap()
           
 String getId()
           
 List<InitMethod> getInitMethod()
           
 String getInterceptorClass()
           
 String getJndiConsumerName()
           
 Collection<MessageDestinationRef> getMessageDestinationRef()
           
 Map<String,MessageDestinationRef> getMessageDestinationRefMap()
           
 Collection<PersistenceContextRef> getPersistenceContextRef()
           
 Map<String,PersistenceContextRef> getPersistenceContextRefMap()
           
 Collection<PersistenceUnitRef> getPersistenceUnitRef()
           
 Map<String,PersistenceUnitRef> getPersistenceUnitRefMap()
           
 List<LifecycleCallback> getPostActivate()
           
 List<LifecycleCallback> getPostConstruct()
           
 List<LifecycleCallback> getPreDestroy()
           
 List<LifecycleCallback> getPrePassivate()
           
 List<RemoveMethod> getRemoveMethod()
           
 Collection<ResourceEnvRef> getResourceEnvRef()
           
 Map<String,ResourceEnvRef> getResourceEnvRefMap()
           
 Collection<ResourceRef> getResourceRef()
           
 Map<String,ResourceRef> getResourceRefMap()
           
 Collection<ServiceRef> getServiceRef()
           
 Map<String,ServiceRef> getServiceRefMap()
           
 void setId(String value)
           
 void setInterceptorClass(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected List<Text> description

interceptorClass

protected String interceptorClass

aroundInvoke

protected List<AroundInvoke> aroundInvoke

envEntry

protected KeyedCollection<String,EnvEntry> envEntry

ejbRef

protected KeyedCollection<String,EjbRef> ejbRef

ejbLocalRef

protected KeyedCollection<String,EjbLocalRef> ejbLocalRef

serviceRef

protected KeyedCollection<String,ServiceRef> serviceRef

resourceRef

protected KeyedCollection<String,ResourceRef> resourceRef

resourceEnvRef

protected KeyedCollection<String,ResourceEnvRef> resourceEnvRef

messageDestinationRef

protected KeyedCollection<String,MessageDestinationRef> messageDestinationRef

persistenceContextRef

protected KeyedCollection<String,PersistenceContextRef> persistenceContextRef

persistenceUnitRef

protected KeyedCollection<String,PersistenceUnitRef> persistenceUnitRef

postConstruct

protected List<LifecycleCallback> postConstruct

preDestroy

protected List<LifecycleCallback> preDestroy

postActivate

protected List<LifecycleCallback> postActivate

prePassivate

protected List<LifecycleCallback> prePassivate

id

protected String id
Constructor Detail

Interceptor

public Interceptor()

Interceptor

public Interceptor(Class<?> interceptorClass)

Interceptor

public Interceptor(String interceptorClass)
Method Detail

getJndiConsumerName

public String getJndiConsumerName()
Specified by:
getJndiConsumerName in interface JndiConsumer

getDescription

public List<Text> getDescription()

getInterceptorClass

public String getInterceptorClass()

setInterceptorClass

public void setInterceptorClass(String value)

getAroundInvoke

public List<AroundInvoke> getAroundInvoke()
Specified by:
getAroundInvoke in interface Lifecycle

addAroundInvoke

public void addAroundInvoke(String method)
Specified by:
addAroundInvoke in interface Lifecycle

getEnvEntry

public Collection<EnvEntry> getEnvEntry()
Specified by:
getEnvEntry in interface JndiConsumer

getEnvEntryMap

public Map<String,EnvEntry> getEnvEntryMap()
Specified by:
getEnvEntryMap in interface JndiConsumer

getEjbRef

public Collection<EjbRef> getEjbRef()
Specified by:
getEjbRef in interface JndiConsumer

getEjbRefMap

public Map<String,EjbRef> getEjbRefMap()
Specified by:
getEjbRefMap in interface JndiConsumer

getEjbLocalRef

public Collection<EjbLocalRef> getEjbLocalRef()
Specified by:
getEjbLocalRef in interface JndiConsumer

getEjbLocalRefMap

public Map<String,EjbLocalRef> getEjbLocalRefMap()
Specified by:
getEjbLocalRefMap in interface JndiConsumer

getServiceRef

public Collection<ServiceRef> getServiceRef()
Specified by:
getServiceRef in interface JndiConsumer

getServiceRefMap

public Map<String,ServiceRef> getServiceRefMap()
Specified by:
getServiceRefMap in interface JndiConsumer

getResourceRef

public Collection<ResourceRef> getResourceRef()
Specified by:
getResourceRef in interface JndiConsumer

getResourceRefMap

public Map<String,ResourceRef> getResourceRefMap()
Specified by:
getResourceRefMap in interface JndiConsumer

getResourceEnvRef

public Collection<ResourceEnvRef> getResourceEnvRef()
Specified by:
getResourceEnvRef in interface JndiConsumer

getResourceEnvRefMap

public Map<String,ResourceEnvRef> getResourceEnvRefMap()
Specified by:
getResourceEnvRefMap in interface JndiConsumer

getMessageDestinationRef

public Collection<MessageDestinationRef> getMessageDestinationRef()
Specified by:
getMessageDestinationRef in interface JndiConsumer

getMessageDestinationRefMap

public Map<String,MessageDestinationRef> getMessageDestinationRefMap()
Specified by:
getMessageDestinationRefMap in interface JndiConsumer

getPersistenceContextRef

public Collection<PersistenceContextRef> getPersistenceContextRef()
Specified by:
getPersistenceContextRef in interface JndiConsumer

getPersistenceContextRefMap

public Map<String,PersistenceContextRef> getPersistenceContextRefMap()
Specified by:
getPersistenceContextRefMap in interface JndiConsumer

getPersistenceUnitRef

public Collection<PersistenceUnitRef> getPersistenceUnitRef()
Specified by:
getPersistenceUnitRef in interface JndiConsumer

getPersistenceUnitRefMap

public Map<String,PersistenceUnitRef> getPersistenceUnitRefMap()
Specified by:
getPersistenceUnitRefMap in interface JndiConsumer

getPostConstruct

public List<LifecycleCallback> getPostConstruct()
Specified by:
getPostConstruct in interface Lifecycle

addPostConstruct

public void addPostConstruct(String method)
Specified by:
addPostConstruct in interface Lifecycle

getPreDestroy

public List<LifecycleCallback> getPreDestroy()
Specified by:
getPreDestroy in interface Lifecycle

addPreDestroy

public void addPreDestroy(String method)
Specified by:
addPreDestroy in interface Lifecycle

getPostActivate

public List<LifecycleCallback> getPostActivate()
Specified by:
getPostActivate in interface Session

addPostActivate

public void addPostActivate(String method)
Specified by:
addPostActivate in interface Session

getPrePassivate

public List<LifecycleCallback> getPrePassivate()
Specified by:
getPrePassivate in interface Session

addPrePassivate

public void addPrePassivate(String method)
Specified by:
addPrePassivate in interface Session

getInitMethod

public List<InitMethod> getInitMethod()
Specified by:
getInitMethod in interface Session

getRemoveMethod

public List<RemoveMethod> getRemoveMethod()
Specified by:
getRemoveMethod in interface Session

getId

public String getId()

setId

public void setId(String value)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.