Save This Page
Home » JBoss-5.1.0 » org » jboss » naming » [javadoc | source]
org.jboss.naming
public class: NamingAlias [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.naming.NamingAlias

All Implemented Interfaces:
    NamingAliasMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

A simple utility mbean that allows one to create an alias in the form of a LinkRef from one JNDI name to another.
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public NamingAlias() 
 public NamingAlias(String fromName,
    String toName) 
Method from org.jboss.naming.NamingAlias Summary:
getFromName,   getToName,   setFromName,   setToName,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.naming.NamingAlias Detail:
 public String getFromName() 
    Get the from name of the alias. This is the location where the LinkRef is bound under JNDI.
 public String getToName() 
    Get the to name of the alias. This is the target name to which the LinkRef refers. The name is a URL, or a name to be resolved relative to the initial context, or if the first character of the name is ".", the name is relative to the context in which the link is bound.
 public  void setFromName(String name) throws NamingException 
    Set the from name of the alias. This is the location where the LinkRef is bound under JNDI.
 public  void setToName(String name) throws NamingException 
    Set the to name of the alias. This is the target name to which the LinkRef refers. The name is a URL, or a name to be resolved relative to the initial context, or if the first character of the name is ".", the name is relative to the context in which the link is bound.
 protected  void startService() throws Exception 
 protected  void stopService() throws Exception