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();