|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.compatibility.base.application.spi.JndiServiceLocator_1
Standard JNDI access
public class JndiServiceLocator_1
A JNDI based service locator
It's main features are
| Constructor Summary | |
|---|---|
protected |
JndiServiceLocator_1()
Deprecated. Allow dynamic class loading |
| Method Summary | |
|---|---|
void |
activate()
Deprecated. The activate method initializes a layer or component. |
void |
bind(String registrationId,
Object object)
Deprecated. Bind a service to the registry |
void |
deactivate()
Deprecated. The deactivate method releases a layer or component. |
protected Context |
initialContext()
Deprecated. Gets or creates an initial context |
Enumeration |
listBindings(String registrationId)
Deprecated. |
Object |
lookup(String registrationId)
Deprecated. Lookup a service |
void |
unbind(String registrationId)
Deprecated. Removes a service from the registry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JndiServiceLocator_1()
| Method Detail |
|---|
public void activate()
throws Exception
An activate() implementation of a subclass should be of the form:
{
super.activate();
«local activation code»
}
activate in interface Manageable_1_0Exception - the application framwork maps all java Exceptions
internally to standard ServiceExceptions.
public void deactivate()
throws Exception
A deactivate() implementation of a subclass should be of the form: of the form:
{
«local deactivation code»
super.deactivate();
}
deactivate in interface Manageable_1_0Exception - the application framwork maps all java Exceptions
internally to standard ServiceExceptions.
protected Context initialContext()
throws NamingException
NamingException
public Object lookup(String registrationId)
throws ServiceException
ServiceLocator_1_0
lookup in interface ServiceLocator_1_0registrationId - A colon-separated list of naming elements
ServiceException
public void bind(String registrationId,
Object object)
throws ServiceException
ServiceLocator_1_0
bind in interface ServiceLocator_1_0registrationId - A colon-separated list of naming elementsobject - The object to be bound, usually the service's connection
factory
ServiceException
public void unbind(String registrationId)
throws ServiceException
ServiceLocator_1_0
unbind in interface ServiceLocator_1_0registrationId - A colon-separated list of naming elements
ServiceException
public Enumeration listBindings(String registrationId)
throws ServiceException
listBindings in interface ServiceLocator_1_0ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||