Class AppListenerDescriptorImpl
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- org.glassfish.web.deployment.descriptor.AppListenerDescriptorImpl
-
- All Implemented Interfaces:
AppListenerDescriptor,Serializable
public class AppListenerDescriptorImpl extends Descriptor implements AppListenerDescriptor
Objects exhibiting this interface represent an event listener descriptor. This represents theXML element defined in the Servlet 2.3 spec. - Author:
- Vivek Nagar
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
-
Constructor Summary
Constructors Constructor Description AppListenerDescriptorImpl()The default constructor.AppListenerDescriptorImpl(String clz)Create an instance of the descriptor with the specified listener class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Test for equalsStringgetDisplayName()get display nameStringgetListener()Return the listener class.inthashCode()voidprint(StringBuilder toStringBuilder)A formatted version of the state as a String.voidsetDisplayName(String name)set display namevoidsetListener(String clz)Sets the listener class.-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
-
Methods inherited from class org.glassfish.deployment.common.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, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.deployment.web.AppListenerDescriptor
getDescription, getLargeIconUri, getSmallIconUri, setDescription, setLargeIconUri, setSmallIconUri
-
-
-
-
Constructor Detail
-
AppListenerDescriptorImpl
public AppListenerDescriptorImpl()
The default constructor.
-
AppListenerDescriptorImpl
public AppListenerDescriptorImpl(String clz)
Create an instance of the descriptor with the specified listener class.- Parameters:
the- listener class name.
-
-
Method Detail
-
getListener
public String getListener()
Return the listener class.- Specified by:
getListenerin interfaceAppListenerDescriptor- Returns:
- the listener class name or empty string if none.
-
setListener
public void setListener(String clz)
Sets the listener class.- Specified by:
setListenerin interfaceAppListenerDescriptor- Parameters:
the- listener class name.
-
setDisplayName
public void setDisplayName(String name)
set display name- Specified by:
setDisplayNamein interfaceAppListenerDescriptor- Overrides:
setDisplayNamein classDescriptor- Parameters:
name- the display name
-
getDisplayName
public String getDisplayName()
get display name- Specified by:
getDisplayNamein interfaceAppListenerDescriptor- Overrides:
getDisplayNamein classDescriptor- Returns:
- the display name
-
print
public void print(StringBuilder toStringBuilder)
A formatted version of the state as a String.- Overrides:
printin classDescriptor
-
-