org.talika.tarsis.service
Interface Service

All Known Implementing Classes:
AbstractService, AuthenticatorService, AuthorizatorService, CommandFactoryService, ConsoleLogger, DataSourceFactory, FactoryService, FileLogger, JndiContextFactory, LdapContextFactory, LoggerHandler, LoggerService, MemoryAuthenticator, MemoryAuthorizator, SmtpMailSession, XmlCommandFactory, XmlCommandsFactory

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.

Version:
$Revision: 122 $
Author:
Jose M. Palomar

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

init

void init(Context context)
          throws ServiceException
Called by the framework to indicate that is being placed into service.

Parameters:
context - Context context that initialized service.
Throws:
ServiceException - if an exception has occurred that interferes with the services's normal operation

destroy

void destroy()
Called by the framework to indicate that is being placed out of service.


getName

java.lang.String getName()
Returns name of service.

Returns:
String name of service.


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.