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

Field Detail

description

protected java.util.List<Text> description

interceptorClass

protected java.lang.String interceptorClass

aroundInvoke

protected java.util.List<AroundInvoke> aroundInvoke

envEntry

protected KeyedCollection<java.lang.String,EnvEntry> envEntry

ejbRef

protected KeyedCollection<java.lang.String,EjbRef> ejbRef

ejbLocalRef

protected KeyedCollection<java.lang.String,EjbLocalRef> ejbLocalRef

serviceRef

protected KeyedCollection<java.lang.String,ServiceRef> serviceRef

resourceRef

protected KeyedCollection<java.lang.String,ResourceRef> resourceRef

resourceEnvRef

protected KeyedCollection<java.lang.String,ResourceEnvRef> resourceEnvRef

messageDestinationRef

protected KeyedCollection<java.lang.String,MessageDestinationRef> messageDestinationRef

persistenceContextRef

protected KeyedCollection<java.lang.String,PersistenceContextRef> persistenceContextRef

persistenceUnitRef

protected KeyedCollection<java.lang.String,PersistenceUnitRef> persistenceUnitRef

postConstruct

protected java.util.List<LifecycleCallback> postConstruct

preDestroy

protected java.util.List<LifecycleCallback> preDestroy

postActivate

protected java.util.List<LifecycleCallback> postActivate

prePassivate

protected java.util.List<LifecycleCallback> prePassivate

id

protected java.lang.String id
Constructor Detail

Interceptor

public Interceptor()

Interceptor

public Interceptor(java.lang.Class<?> interceptorClass)

Interceptor

public Interceptor(java.lang.String interceptorClass)
Method Detail

getJndiConsumerName

public java.lang.String getJndiConsumerName()
Specified by:
getJndiConsumerName in interface JndiConsumer

getDescription

public java.util.List<Text> getDescription()

getInterceptorClass

public java.lang.String getInterceptorClass()

setInterceptorClass

public void setInterceptorClass(java.lang.String value)

getAroundInvoke

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

addAroundInvoke

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

getEnvEntry

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

getEnvEntryMap

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

getEjbRef

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

getEjbRefMap

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

getEjbLocalRef

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

getEjbLocalRefMap

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

getServiceRef

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

getServiceRefMap

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

getResourceRef

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

getResourceRefMap

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

getResourceEnvRef

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

getResourceEnvRefMap

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

getMessageDestinationRef

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

getMessageDestinationRefMap

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

getPersistenceContextRef

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

getPersistenceContextRefMap

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

getPersistenceUnitRef

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

getPersistenceUnitRefMap

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

getPostConstruct

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

addPostConstruct

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

getPreDestroy

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

addPreDestroy

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

getPostActivate

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

addPostActivate

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

getPrePassivate

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

addPrePassivate

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

getInitMethod

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

getRemoveMethod

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

getId

public java.lang.String getId()

setId

public void setId(java.lang.String value)


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