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.xsd
Java 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"/>
<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 |
protected List<LifecycleCallback> |
afterBegin
|
protected List<LifecycleCallback> |
afterCompletion
|
protected List<AroundInvoke> |
aroundInvoke
|
protected List<AroundTimeout> |
aroundTimeout
|
protected List<LifecycleCallback> |
beforeCompletion
|
protected KeyedCollection<String,DataSource> |
dataSource
|
protected TextMap |
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
|
|
Method Summary |
void |
addAfterBegin(String method)
|
void |
addAfterCompletion(String method)
|
void |
addAroundInvoke(String method)
|
void |
addAroundTimeout(String method)
|
void |
addBeforeCompletion(String method)
|
void |
addPostActivate(String method)
|
void |
addPostConstruct(String method)
|
void |
addPreDestroy(String method)
|
void |
addPrePassivate(String method)
|
List<LifecycleCallback> |
getAfterBegin()
|
List<LifecycleCallback> |
getAfterCompletion()
|
List<AroundInvoke> |
getAroundInvoke()
|
List<AroundTimeout> |
getAroundTimeout()
|
List<LifecycleCallback> |
getBeforeCompletion()
|
Collection<DataSource> |
getDataSource()
|
Map<String,DataSource> |
getDataSourceMap()
|
String |
getDescription()
|
Text[] |
getDescriptions()
|
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 |
setDescriptions(Text[] text)
|
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 |
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
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
Interceptor
public Interceptor()
Interceptor
public Interceptor(Class<?> interceptorClass)
Interceptor
public Interceptor(String interceptorClass)
getJndiConsumerName
public String getJndiConsumerName()
- Specified by:
getJndiConsumerName in interface JndiConsumer
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:
getAroundInvoke in interface Invokable
addAroundInvoke
public void addAroundInvoke(String method)
- Specified by:
addAroundInvoke in interface Invokable
getAroundTimeout
public List<AroundTimeout> getAroundTimeout()
- Specified by:
getAroundTimeout in interface Invokable
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
getDataSource
public Collection<DataSource> getDataSource()
- Specified by:
getDataSource in interface JndiConsumer
getDataSourceMap
public Map<String,DataSource> getDataSourceMap()
- Specified by:
getDataSourceMap 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
addAfterBegin
public void addAfterBegin(String method)
- Specified by:
addAfterBegin in interface Session
addAfterCompletion
public void addAfterCompletion(String method)
- Specified by:
addAfterCompletion in interface Session
addBeforeCompletion
public void addBeforeCompletion(String method)
- Specified by:
addBeforeCompletion in interface Session
getAfterBegin
public List<LifecycleCallback> getAfterBegin()
- Specified by:
getAfterBegin in interface Session
getAfterCompletion
public List<LifecycleCallback> getAfterCompletion()
- Specified by:
getAfterCompletion in interface Session
getBeforeCompletion
public List<LifecycleCallback> getBeforeCompletion()
- Specified by:
getBeforeCompletion 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)
addAroundTimeout
public void addAroundTimeout(String method)
- Specified by:
addAroundTimeout in interface Invokable
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.