|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.naming.NamingAlias
public class NamingAlias
A simple utility mbean that allows one to create an alias in the form of a LinkRef from one JNDI name to another.
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
NamingAlias()
|
|
NamingAlias(String fromName,
String toName)
|
|
| Method Summary | |
|---|---|
String |
getFromName()
Get the from name of the alias. |
String |
getToName()
Get the to name of the alias. |
void |
setFromName(String name)
Set the from name of the alias. |
void |
setToName(String name)
Set the to name of the alias. |
protected void |
startService()
|
protected void |
stopService()
|
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.system.ServiceMBean |
|---|
getName, getState, getStateString, jbossInternalLifecycle |
| Methods inherited from interface org.jboss.system.Service |
|---|
create, destroy, start, stop |
| Constructor Detail |
|---|
public NamingAlias()
public NamingAlias(String fromName,
String toName)
| Method Detail |
|---|
public String getFromName()
getFromName in interface NamingAliasMBean
public void setFromName(String name)
throws NamingException
setFromName in interface NamingAliasMBeanname, - the location where the LinkRef will be bound
NamingExceptionpublic String getToName()
getToName in interface NamingAliasMBean
public void setToName(String name)
throws NamingException
setToName in interface NamingAliasMBeanname, - the target JNDI name of the alias.
NamingException
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
protected void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||