com.sun.enterprise.deployment
Class InterceptorDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.JndiEnvironmentRefsGroupDescriptor
                  extended by com.sun.enterprise.deployment.InterceptorDescriptor
All Implemented Interfaces:
JndiNameEnvironment, EjbReferenceContainer, MessageDestinationReferenceContainer, ResourceReferenceContainer, WritableJndiNameEnvironment, java.io.Serializable
Direct Known Subclasses:
EjbInterceptor

public class InterceptorDescriptor
extends JndiEnvironmentRefsGroupDescriptor

Contains information about 1 Java EE interceptor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.JndiEnvironmentRefsGroupDescriptor
bundleDescriptor, callbackDescriptors, ejbReferences, entityManagerFactoryReferences, entityManagerReferences, environmentProperties, jmsDestReferences, messageDestReferences, resourceReferences, serviceReferences
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
InterceptorDescriptor()
           
 
Method Summary
 void addAroundInvokeDescriptor(LifecycleCallbackDescriptor aroundInvokeDesc)
           
 void addAroundInvokeDescriptors(java.util.Set<LifecycleCallbackDescriptor> aroundInvokes)
           
 void addAroundTimeoutDescriptor(LifecycleCallbackDescriptor aroundTimeoutDesc)
           
 void addAroundTimeoutDescriptors(java.util.Set<LifecycleCallbackDescriptor> aroundTimeouts)
           
 void addPostActivateDescriptor(LifecycleCallbackDescriptor lcDesc)
           
 void addPrePassivateDescriptor(LifecycleCallbackDescriptor lcDesc)
           
 java.util.Set<LifecycleCallbackDescriptor> getAroundInvokeDescriptors()
           
 java.util.Set<LifecycleCallbackDescriptor> getAroundTimeoutDescriptors()
           
 boolean getFromBeanClass()
           
 java.lang.Class getInterceptorClass()
           
 java.lang.String getInterceptorClassName()
           
 java.util.List<LifecycleCallbackDescriptor> getOrderedAroundInvokeDescriptors(java.lang.ClassLoader loader)
          Some clients need the AroundInvoke methods for this inheritance hierarchy in the spec-defined "least derived --> most derived" order.
 java.util.List<LifecycleCallbackDescriptor> getOrderedAroundTimeoutDescriptors(java.lang.ClassLoader loader)
          Some clients need the AroundTimeout methods for this inheritance hierarchy in the spec-defined "least derived --> most derived" order.
 java.util.List<LifecycleCallbackDescriptor> getOrderedCallbackDescriptors(LifecycleCallbackDescriptor.CallbackType type, java.lang.ClassLoader loader)
          Some clients need the Callback methods for this inheritance hierarchy in the spec-defined "least derived --> most derived" order.
 boolean hasAroundInvokeDescriptor()
           
 boolean hasAroundTimeoutDescriptor()
           
 void setFromBeanClass(boolean flag)
           
 void setInterceptorClass(java.lang.Class c)
           
 void setInterceptorClassName(java.lang.String className)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sun.enterprise.deployment.JndiEnvironmentRefsGroupDescriptor
addCallbackDescriptor, addCallbackDescriptors, addDataSourceDefinitionDescriptor, addEjbReferenceDescriptor, addEntityManagerFactoryReferenceDescriptor, addEntityManagerReferenceDescriptor, addEnvironmentProperty, addJmsDestinationReferenceDescriptor, addMessageDestinationReferenceDescriptor, addPostConstructDescriptor, addPreDestroyDescriptor, addResourceReferenceDescriptor, addServiceReferenceDescriptor, getBundleDescriptor, getCallbackDescriptors, getDataSourceDefinitionDescriptors, getEjbReference, getEjbReferenceDescriptors, getEntityManagerFactoryReferenceByName, getEntityManagerFactoryReferenceDescriptors, getEntityManagerReferenceByName, getEntityManagerReferenceDescriptors, getEnvironmentProperties, getEnvironmentPropertyByName, getInjectableResourcesByClass, getInjectionInfoByClass, getJmsDestinationReferenceByName, getJmsDestinationReferenceDescriptors, getMessageDestinationReferenceByName, getMessageDestinationReferenceDescriptors, getPostConstructDescriptorByClass, getPostConstructDescriptors, getPreDestroyDescriptorByClass, getPreDestroyDescriptors, getResourceReferenceByName, getResourceReferenceDescriptors, getServiceReferenceByName, getServiceReferenceDescriptors, hasCallbackDescriptor, removeDataSourceDefinitionDescriptor, removeEjbReferenceDescriptor, removeEnvironmentProperty, removeJmsDestinationReferenceDescriptor, removeMessageDestinationReferenceDescriptor, removeResourceReferenceDescriptor, removeServiceReferenceDescriptor, setBundleDescriptor
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, print, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterceptorDescriptor

public InterceptorDescriptor()
Method Detail

getInterceptorClassName

public java.lang.String getInterceptorClassName()

setInterceptorClassName

public void setInterceptorClassName(java.lang.String className)

getInterceptorClass

public java.lang.Class getInterceptorClass()

setInterceptorClass

public void setInterceptorClass(java.lang.Class c)

getAroundInvokeDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getAroundInvokeDescriptors()

getOrderedAroundInvokeDescriptors

public java.util.List<LifecycleCallbackDescriptor> getOrderedAroundInvokeDescriptors(java.lang.ClassLoader loader)
                                                                              throws java.lang.Exception
Some clients need the AroundInvoke methods for this inheritance hierarchy in the spec-defined "least derived --> most derived" order.

Throws:
java.lang.Exception

getAroundTimeoutDescriptors

public java.util.Set<LifecycleCallbackDescriptor> getAroundTimeoutDescriptors()

getOrderedAroundTimeoutDescriptors

public java.util.List<LifecycleCallbackDescriptor> getOrderedAroundTimeoutDescriptors(java.lang.ClassLoader loader)
                                                                               throws java.lang.Exception
Some clients need the AroundTimeout methods for this inheritance hierarchy in the spec-defined "least derived --> most derived" order.

Throws:
java.lang.Exception

setFromBeanClass

public void setFromBeanClass(boolean flag)

getFromBeanClass

public boolean getFromBeanClass()

addAroundInvokeDescriptor

public void addAroundInvokeDescriptor(LifecycleCallbackDescriptor aroundInvokeDesc)

addAroundInvokeDescriptors

public void addAroundInvokeDescriptors(java.util.Set<LifecycleCallbackDescriptor> aroundInvokes)

hasAroundInvokeDescriptor

public boolean hasAroundInvokeDescriptor()

addAroundTimeoutDescriptor

public void addAroundTimeoutDescriptor(LifecycleCallbackDescriptor aroundTimeoutDesc)

addAroundTimeoutDescriptors

public void addAroundTimeoutDescriptors(java.util.Set<LifecycleCallbackDescriptor> aroundTimeouts)

hasAroundTimeoutDescriptor

public boolean hasAroundTimeoutDescriptor()

getOrderedCallbackDescriptors

public java.util.List<LifecycleCallbackDescriptor> getOrderedCallbackDescriptors(LifecycleCallbackDescriptor.CallbackType type,
                                                                                 java.lang.ClassLoader loader)
                                                                          throws java.lang.Exception
Some clients need the Callback methods for this inheritance hierarchy in the spec-defined "least derived --> most derived" order.

Throws:
java.lang.Exception

addPostActivateDescriptor

public void addPostActivateDescriptor(LifecycleCallbackDescriptor lcDesc)

addPrePassivateDescriptor

public void addPrePassivateDescriptor(LifecycleCallbackDescriptor lcDesc)

toString

public java.lang.String toString()
Overrides:
toString in class DynamicAttributesDescriptor
Returns:
a meaningfull string about ourself No Descriptor class which inherits this class should override this method. Rather print() method which is defined in this class should be overridden to describe itself. Refer to the comments on print() method for more details. This method is optimized for persformance reasons.


Copyright © 2012 GlassFish Community. All Rights Reserved.