|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
Interface that defines a service component in Tarsis MVC Framework.
These architectural components provide auxiliar services to the rest of the
framework. Typical services are, object factories or log.
Services have their own life-cycle and are initiated throught init
method when framework stars up and are destroyed calling destroy
method when framework shutsdown.
Every service is given a name. This name is unique in the context.
Method Summary | |
---|---|
void |
destroy()
Called by the framework to indicate that is being placed out of service. |
java.lang.String |
getName()
Returns name of service. |
void |
init(Context context)
Called by the framework to indicate that is being placed into service. |
Method Detail |
---|
void init(Context context) throws ServiceException
context
- Context context that initialized service.
ServiceException
- if an exception has occurred that interferes with the
services's normal operationvoid destroy()
java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |