org.apache.jetspeed.service
Interface Service

All Known Subinterfaces:
PersistenceService

public interface Service

The Service interface has to be implemented by every service that needs to be available through the service factory

See Also:
ServiceFactory

Method Summary
 java.lang.String getName()
          Returns the name of this service.
 void init(org.apache.turbine.util.RunData aRunData, java.lang.Object[] aParams)
          Initializes the newly created service with the given rundata object and parameters.
 

Method Detail

init

public void init(org.apache.turbine.util.RunData aRunData,
                 java.lang.Object[] aParams)
          throws ServiceException
Initializes the newly created service with the given rundata object and parameters.

This method is called by the service factory. If no parameters are passed to the service factory the parameters are null.

Parameters:
aRunData - the Turbine rundata
aParams - the service-specific initialization parameters
Throws:
ServiceException - if the initialization of the service fails e.g. because the given parameter list is not correct

getName

public java.lang.String getName()
Returns the name of this service.
Returns:
the name