|
RichFaces Core API 4.2.2.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServicesFactory
Method Summary | ||
---|---|---|
|
getInstance(Class<T> type)
Get service instance associated with given type, usually service interface or base abstract class. |
|
void |
release()
Release all services. |
|
|
setInstance(Class<T> type,
T instance)
Associate concrete instance with service. |
Method Detail |
---|
<T> T getInstance(Class<T> type) throws ServiceException
Get service instance associated with given type, usually service interface or base abstract class.
T
- service type.type
- Base class implemented by service.
ServiceException
- if factory cannot create requested service.<T> void setInstance(Class<T> type, T instance)
Associate concrete instance with service.
T
- service type.type
- Base class implemented by service.instance
- service instance.void release()
Release all services.
|
RichFaces Core API 4.2.2.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |