1 22 package org.jboss.ejb3.iiop; 23 24 import javax.management.ObjectName ; 25 26 import org.jboss.iiop.WebCL; 27 import org.jboss.mx.loading.RepositoryClassLoader; 28 29 35 public class EJB3IIOPWebClassLoader extends WebCL 36 { 37 private String jndiName; 38 39 public EJB3IIOPWebClassLoader(ObjectName container, RepositoryClassLoader parent, String jndiName) 40 { 41 super(container, parent); 42 this.jndiName = jndiName; 43 } 44 45 @Override 46 public String getKey() 47 { 48 String className = getClass().getName(); 49 int dot = className.lastIndexOf('.'); 50 if( dot >= 0 ) 51 className = className.substring(dot+1); 52 String key = className + '[' + jndiName + ']'; 53 return key; 54 } 55 } 56 | Popular Tags |