Package org.apache.openejb.jee
Class Interceptor
- java.lang.Object
-
- org.apache.openejb.jee.Interceptor
-
- All Implemented Interfaces:
Invokable,JndiConsumer,Lifecycle,Session
public class Interceptor extends Object implements JndiConsumer, Session
ejb-jar_3_1.xsdJava class for interceptorType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="interceptorType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/> <element name="interceptor-class" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType"/> <element name="around-invoke" type="{http://java.sun.com/xml/ns/javaee}around-invokeType" maxOccurs="unbounded" minOccurs="0"/> <element name="around-timeout" type="{http://java.sun.com/xml/ns/javaee}around-timeoutType" maxOccurs="unbounded" minOccurs="0"/> <element name="around-construct" type="{http://java.sun.com/xml/ns/javaee}lifecycle-callbackType" maxOccurs="unbounded" minOccurs="0"/> <group ref="{http://java.sun.com/xml/ns/javaee}jndiEnvironmentRefsGroup"/> <element name="post-activate" type="{http://java.sun.com/xml/ns/javaee}lifecycle-callbackType" maxOccurs="unbounded" minOccurs="0"/> <element name="pre-passivate" type="{http://java.sun.com/xml/ns/javaee}lifecycle-callbackType" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Interceptor()Interceptor(Class<?> interceptorClass)Interceptor(String interceptorClass)
-
Method Summary
-
-
-
Field Detail
-
description
protected TextMap description
-
interceptorClass
protected String interceptorClass
-
aroundInvoke
protected List<AroundInvoke> aroundInvoke
-
aroundTimeout
protected List<AroundTimeout> aroundTimeout
-
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
-
dataSource
protected KeyedCollection<String,DataSource> dataSource
-
jmsConnectionFactories
protected KeyedCollection<String,JMSConnectionFactory> jmsConnectionFactories
-
jmsDestinations
protected KeyedCollection<String,JMSDestination> jmsDestinations
-
aroundConstruct
protected List<LifecycleCallback> aroundConstruct
-
postConstruct
protected List<LifecycleCallback> postConstruct
-
preDestroy
protected List<LifecycleCallback> preDestroy
-
postActivate
protected List<LifecycleCallback> postActivate
-
prePassivate
protected List<LifecycleCallback> prePassivate
-
afterBegin
protected List<LifecycleCallback> afterBegin
-
beforeCompletion
protected List<LifecycleCallback> beforeCompletion
-
afterCompletion
protected List<LifecycleCallback> afterCompletion
-
id
protected String id
-
-
Method Detail
-
getJndiConsumerName
public String getJndiConsumerName()
- Specified by:
getJndiConsumerNamein interfaceJndiConsumer
-
getDescriptions
public Text[] getDescriptions()
-
setDescriptions
public void setDescriptions(Text[] text)
-
getDescription
public String getDescription()
-
getInterceptorClass
public String getInterceptorClass()
-
setInterceptorClass
public void setInterceptorClass(String value)
-
getAroundInvoke
public List<AroundInvoke> getAroundInvoke()
- Specified by:
getAroundInvokein interfaceInvokable
-
addAroundInvoke
public void addAroundInvoke(String method)
- Specified by:
addAroundInvokein interfaceInvokable
-
getAroundTimeout
public List<AroundTimeout> getAroundTimeout()
- Specified by:
getAroundTimeoutin interfaceInvokable
-
getEnvEntry
public Collection<EnvEntry> getEnvEntry()
- Specified by:
getEnvEntryin interfaceJndiConsumer
-
getEnvEntryMap
public Map<String,EnvEntry> getEnvEntryMap()
- Specified by:
getEnvEntryMapin interfaceJndiConsumer
-
getEjbRef
public Collection<EjbRef> getEjbRef()
- Specified by:
getEjbRefin interfaceJndiConsumer
-
getEjbRefMap
public Map<String,EjbRef> getEjbRefMap()
- Specified by:
getEjbRefMapin interfaceJndiConsumer
-
getEjbLocalRef
public Collection<EjbLocalRef> getEjbLocalRef()
- Specified by:
getEjbLocalRefin interfaceJndiConsumer
-
getEjbLocalRefMap
public Map<String,EjbLocalRef> getEjbLocalRefMap()
- Specified by:
getEjbLocalRefMapin interfaceJndiConsumer
-
getServiceRef
public Collection<ServiceRef> getServiceRef()
- Specified by:
getServiceRefin interfaceJndiConsumer
-
getServiceRefMap
public Map<String,ServiceRef> getServiceRefMap()
- Specified by:
getServiceRefMapin interfaceJndiConsumer
-
getResourceRef
public Collection<ResourceRef> getResourceRef()
- Specified by:
getResourceRefin interfaceJndiConsumer
-
getResourceRefMap
public Map<String,ResourceRef> getResourceRefMap()
- Specified by:
getResourceRefMapin interfaceJndiConsumer
-
getResourceEnvRef
public Collection<ResourceEnvRef> getResourceEnvRef()
- Specified by:
getResourceEnvRefin interfaceJndiConsumer
-
getResourceEnvRefMap
public Map<String,ResourceEnvRef> getResourceEnvRefMap()
- Specified by:
getResourceEnvRefMapin interfaceJndiConsumer
-
getMessageDestinationRef
public Collection<MessageDestinationRef> getMessageDestinationRef()
- Specified by:
getMessageDestinationRefin interfaceJndiConsumer
-
getMessageDestinationRefMap
public Map<String,MessageDestinationRef> getMessageDestinationRefMap()
- Specified by:
getMessageDestinationRefMapin interfaceJndiConsumer
-
getPersistenceContextRef
public Collection<PersistenceContextRef> getPersistenceContextRef()
- Specified by:
getPersistenceContextRefin interfaceJndiConsumer
-
getPersistenceContextRefMap
public Map<String,PersistenceContextRef> getPersistenceContextRefMap()
- Specified by:
getPersistenceContextRefMapin interfaceJndiConsumer
-
getPersistenceUnitRef
public Collection<PersistenceUnitRef> getPersistenceUnitRef()
- Specified by:
getPersistenceUnitRefin interfaceJndiConsumer
-
getPersistenceUnitRefMap
public Map<String,PersistenceUnitRef> getPersistenceUnitRefMap()
- Specified by:
getPersistenceUnitRefMapin interfaceJndiConsumer
-
getDataSource
public Collection<DataSource> getDataSource()
- Specified by:
getDataSourcein interfaceJndiConsumer
-
getDataSourceMap
public Map<String,DataSource> getDataSourceMap()
- Specified by:
getDataSourceMapin interfaceJndiConsumer
-
getAroundConstruct
public List<LifecycleCallback> getAroundConstruct()
-
getPostConstruct
public List<LifecycleCallback> getPostConstruct()
- Specified by:
getPostConstructin interfaceLifecycle
-
addPostConstruct
public void addPostConstruct(String method)
- Specified by:
addPostConstructin interfaceLifecycle
-
getPreDestroy
public List<LifecycleCallback> getPreDestroy()
- Specified by:
getPreDestroyin interfaceLifecycle
-
addPreDestroy
public void addPreDestroy(String method)
- Specified by:
addPreDestroyin interfaceLifecycle
-
getPostActivate
public List<LifecycleCallback> getPostActivate()
- Specified by:
getPostActivatein interfaceSession
-
addPostActivate
public void addPostActivate(String method)
- Specified by:
addPostActivatein interfaceSession
-
getPrePassivate
public List<LifecycleCallback> getPrePassivate()
- Specified by:
getPrePassivatein interfaceSession
-
addPrePassivate
public void addPrePassivate(String method)
- Specified by:
addPrePassivatein interfaceSession
-
addAfterBegin
public void addAfterBegin(String method)
- Specified by:
addAfterBeginin interfaceSession
-
addAfterCompletion
public void addAfterCompletion(String method)
- Specified by:
addAfterCompletionin interfaceSession
-
addBeforeCompletion
public void addBeforeCompletion(String method)
- Specified by:
addBeforeCompletionin interfaceSession
-
getAfterBegin
public List<LifecycleCallback> getAfterBegin()
- Specified by:
getAfterBeginin interfaceSession
-
getAfterCompletion
public List<LifecycleCallback> getAfterCompletion()
- Specified by:
getAfterCompletionin interfaceSession
-
getBeforeCompletion
public List<LifecycleCallback> getBeforeCompletion()
- Specified by:
getBeforeCompletionin interfaceSession
-
getInitMethod
public List<InitMethod> getInitMethod()
- Specified by:
getInitMethodin interfaceSession
-
getRemoveMethod
public List<RemoveMethod> getRemoveMethod()
- Specified by:
getRemoveMethodin interfaceSession
-
getId
public String getId()
-
setId
public void setId(String value)
-
addAroundTimeout
public void addAroundTimeout(String method)
- Specified by:
addAroundTimeoutin interfaceInvokable
-
getJMSConnectionFactories
public Collection<JMSConnectionFactory> getJMSConnectionFactories()
- Specified by:
getJMSConnectionFactoriesin interfaceJndiConsumer
-
getJMSConnectionFactoriesMap
public Map<String,JMSConnectionFactory> getJMSConnectionFactoriesMap()
- Specified by:
getJMSConnectionFactoriesMapin interfaceJndiConsumer
-
getJMSDestination
public Collection<JMSDestination> getJMSDestination()
- Specified by:
getJMSDestinationin interfaceJndiConsumer
-
getJMSDestinationMap
public Map<String,JMSDestination> getJMSDestinationMap()
- Specified by:
getJMSDestinationMapin interfaceJndiConsumer
-
-