|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object portal.services.ServiceLocator
This class allows you to locate a service based on the interface it needs to implement.
Example:
Registry registry = (Registry) ServiceLocator.getServiceLocator().locateService(portal.registry.Registry.class);
Constructor Summary | |
ServiceLocator()
|
Method Summary | |
static ServiceLocator |
getServiceLocator()
Returns an instance of the ServiceLocator that has been initialized by the framework. |
abstract IService |
locateService(java.lang.Class interfaceRequired)
This method will search for a registered service that implements a certain interface. |
protected static void |
setServiceLocator(ServiceLocator serviceLocator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceLocator()
Method Detail |
protected static void setServiceLocator(ServiceLocator serviceLocator) throws ServiceException
ServiceException
public static final ServiceLocator getServiceLocator()
public abstract IService locateService(java.lang.Class interfaceRequired) throws ServiceException
interfaceRequired
- The Class instance of the interface the service should implement
ServiceException
- thrown when the framework was unable to search for a service
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |