|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.perfectjpattern.jee.business.servicelocator.ServiceLocator
public final class ServiceLocator
Generic componentized implementation of IServiceLocator
. Provides
concrete IServiceLocator
implementations with reusable JNDI service
lookup and Services caching.
Note that all initial properties are loaded from the jndi.properties
file
Method Summary | ||
---|---|---|
static IServiceLocator |
getInstance()
Returns Singleton instance of IServiceLocator |
|
|
locate(String aName)
Returns the matching Service found |
|
void |
shutdown()
Shutdown IServiceLocator and releases resources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IServiceLocator getInstance()
IServiceLocator
IServiceLocator
public <S> S locate(String aName) throws IllegalArgumentException
locate
in interface IServiceLocator
aName
- Name of Service to lookup
IllegalArgumentException
public void shutdown() throws ServiceLocatorException
IServiceLocator
and releases resources
shutdown
in interface IServiceLocator
ServiceLocatorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |