FileDocCategorySizeDatePackage
AppListenerDescriptorImpl.javaAPI DocGlassfish v2 API3722Fri May 04 22:31:20 BST 2007com.sun.enterprise.deployment

AppListenerDescriptorImpl

public class AppListenerDescriptorImpl extends Object implements com.sun.enterprise.deployment.web.AppListenerDescriptor, 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

Fields Summary
private String
listenerClass
Constructors Summary
public AppListenerDescriptorImpl()
The default constructor.

    
public AppListenerDescriptorImpl(String clz)
Create an instance of the descriptor with the specified listener class.

param
the listener class name.

	this.listenerClass = clz;
    
Methods Summary
public booleanequals(java.lang.Object obj)
Test for equals

	return (obj instanceof AppListenerDescriptorImpl)?
	    this.getListener().equals(
		((AppListenerDescriptorImpl)obj).getListener()) :
	    super.equals(obj);
    
public java.lang.StringgetListener()
Return the listener class.

return
the listener class name or empty string if none.

	if (this.listenerClass == null) {
	    this.listenerClass = "";
	}
	return this.listenerClass;
    
public inthashCode()

        int result = 17;
        result = 37*result + getListener().hashCode();
        return result;
    
public voidprint(java.lang.StringBuffer toStringBuffer)
A formatted version of the state as a String.

        toStringBuffer.append("Listener Class ").append(this.getListener());
    
public voidsetListener(java.lang.String clz)
Sets the listener class.

param
the listener class name.

	this.listenerClass = clz;