com.sun.enterprise.deployment
Class LifecycleCallbackDescriptor

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.LifecycleCallbackDescriptor
All Implemented Interfaces:
java.io.Serializable

public class LifecycleCallbackDescriptor
extends Descriptor

Deployment object representing the lifecycle-callback.

Author:
Shing Wai Chan
See Also:
Serialized Form

Nested Class Summary
static class LifecycleCallbackDescriptor.CallbackType
           
 
Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
LifecycleCallbackDescriptor()
           
 
Method Summary
 java.lang.String getDefaultLifecycleCallbackClass()
           
 java.lang.String getLifecycleCallbackClass()
           
 java.lang.String getLifecycleCallbackMethod()
           
 java.lang.reflect.Method getLifecycleCallbackMethodObject(java.lang.ClassLoader loader)
          Given a classloader, find the Method object corresponding to this lifecycle callback.
 MetadataSource getMetadataSource()
           
 void setDefaultLifecycleCallbackClass(java.lang.String clazz)
           
 void setLifecycleCallbackClass(java.lang.String clazz)
           
 void setLifecycleCallbackMethod(java.lang.String method)
           
 void setMetadataSource(MetadataSource metadataSource)
           
 
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, toString
 
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

LifecycleCallbackDescriptor

public LifecycleCallbackDescriptor()
Method Detail

setLifecycleCallbackClass

public void setLifecycleCallbackClass(java.lang.String clazz)

getLifecycleCallbackClass

public java.lang.String getLifecycleCallbackClass()

setDefaultLifecycleCallbackClass

public void setDefaultLifecycleCallbackClass(java.lang.String clazz)

getDefaultLifecycleCallbackClass

public java.lang.String getDefaultLifecycleCallbackClass()

setLifecycleCallbackMethod

public void setLifecycleCallbackMethod(java.lang.String method)

getLifecycleCallbackMethod

public java.lang.String getLifecycleCallbackMethod()

getLifecycleCallbackMethodObject

public java.lang.reflect.Method getLifecycleCallbackMethodObject(java.lang.ClassLoader loader)
                                                          throws java.lang.Exception
Given a classloader, find the Method object corresponding to this lifecycle callback.

Throws:
java.lang.Exception

getMetadataSource

public MetadataSource getMetadataSource()

setMetadataSource

public void setMetadataSource(MetadataSource metadataSource)


Copyright © 2012 GlassFish Community. All Rights Reserved.