|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object portal.services.CachedServiceRef
Locating a service can be an expensive task, especially when it is done in a loop. This class caches a reference to a service.
Constructor Summary | |
CachedServiceRef(java.lang.Class interfaceRequired)
Create a cached reference to a service. |
Method Summary | |
IService |
getService()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CachedServiceRef(java.lang.Class interfaceRequired) throws ServiceException
Create a cached reference to a service.
interfaceRequired
- The Class instance of the interface the service should implement
ServiceException
- thrown when the framework was unable to search for a service or
when the service did not existMethod Detail |
public IService getService()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |