com.sun.enterprise.deployment
Class AppListenerDescriptorImpl

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

public class AppListenerDescriptorImpl
extends Descriptor
implements AppListenerDescriptor, java.io.Serializable

Objects exhibiting this interface represent an event listener descriptor. This represents the XML element defined in the Servlet 2.3 spec.

Author:
Vivek Nagar
See Also:
Serialized Form

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
AppListenerDescriptorImpl()
          The default constructor.
AppListenerDescriptorImpl(java.lang.String clz)
          Create an instance of the descriptor with the specified listener class.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Test for equals
 java.lang.String getDisplayName()
          get display name
 java.lang.String getListener()
          Return the listener class.
 int hashCode()
           
 void print(java.lang.StringBuffer toStringBuffer)
          A formatted version of the state as a String.
 void setDisplayName(java.lang.String name)
          set display name
 void setListener(java.lang.String clz)
          Sets the listener class.
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, 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 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, 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(java.lang.String clz)
Create an instance of the descriptor with the specified listener class.

Parameters:
the - listener class name.
Method Detail

getListener

public java.lang.String getListener()
Return the listener class.

Specified by:
getListener in interface AppListenerDescriptor
Returns:
the listener class name or empty string if none.

setListener

public void setListener(java.lang.String clz)
Sets the listener class.

Specified by:
setListener in interface AppListenerDescriptor
Parameters:
the - listener class name.

setDisplayName

public void setDisplayName(java.lang.String name)
set display name

Specified by:
setDisplayName in interface AppListenerDescriptor
Overrides:
setDisplayName in class Descriptor
Parameters:
name - the display name

getDisplayName

public java.lang.String getDisplayName()
get display name

Specified by:
getDisplayName in interface AppListenerDescriptor
Overrides:
getDisplayName in class Descriptor
Returns:
the display name

equals

public boolean equals(java.lang.Object obj)
Test for equals

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

print

public void print(java.lang.StringBuffer toStringBuffer)
A formatted version of the state as a String.

Overrides:
print in class Descriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.