FileDocCategorySizeDatePackage
EjbContainerEvent.javaAPI DocGlassfish v2 API4373Fri May 04 22:35:44 BST 2007com.sun.enterprise.server.event

EjbContainerEvent

public class EjbContainerEvent extends Object

Fields Summary
public static final int
BEFORE_EJB_CONTAINER_LOAD
public static final int
AFTER_EJB_CONTAINER_LOAD
public static final int
BEFORE_EJB_CONTAINER_UNLOAD
public static final int
AFTER_EJB_CONTAINER_UNLOAD
private int
eventType
private com.sun.enterprise.deployment.EjbDescriptor
ejbDescriptor
private ClassLoader
loader
Constructors Summary
public EjbContainerEvent(int eventType, com.sun.enterprise.deployment.EjbDescriptor ejbDescriptor, ClassLoader loader)


        
	     
    
	this.eventType = eventType;
	this.ejbDescriptor = ejbDescriptor;
	this.loader = loader;
    
Methods Summary
public java.lang.ClassLoadergetClassLoader()

	return this.loader;
    
public com.sun.enterprise.deployment.EjbDescriptorgetEjbDescriptor()

	return this.ejbDescriptor;
    
public intgetEventType()

	return this.eventType;
    
public java.lang.StringtoString()

	StringBuffer sbuf = new StringBuffer("EjbEvent: ");
	switch (eventType) {
	    case BEFORE_EJB_CONTAINER_LOAD:
		sbuf.append("BEFORE_LOAD -> ");
		break;
	    case AFTER_EJB_CONTAINER_LOAD:
		sbuf.append("AFTER_LOAD -> ");
		break;
	    case BEFORE_EJB_CONTAINER_UNLOAD:
		sbuf.append("BEFORE_UNLOAD -> ");
		break;
	    case AFTER_EJB_CONTAINER_UNLOAD:
		sbuf.append("AFTER_UNLOAD -> ");
		break;
	    default:
		//
	}

	if (ejbDescriptor != null) {
	    sbuf.append(ejbDescriptor.getName());
	}

	return sbuf.toString();