Top Description Methods
org.apache.avalon.framework.service

public Interface Serviceable


A Serviceable is a class that need to connect to software components using a "role" abstraction, thus not depending on particular implementations but on behavioral interfaces.
The contract surrounding a Serviceable is that it is a user. The Serviceable is able to use Objects managed by the ServiceManager it was initialized with. As part of the contract with the system, the instantiating entity must call the service method before the Serviceable can be considered valid.
Author
Avalon Development Team
Version
$Id: Serviceable.java 506231 2007-02-12 02:36:54Z crossley $
See Also
org.apache.avalon.framework.service.ServiceManager

Method Summary

Modifier and TypeMethod and Description
public void
service(ServiceManager
The ServiceManager which this Serviceable uses. Must not be null.
manager
)

Pass the ServiceManager to the Serviceable.

Method Detail

serviceback to summary
public void service(ServiceManager manager) throws ServiceException

Pass the ServiceManager to the Serviceable. The Serviceable implementation should use the specified ServiceManager to acquire the components it needs for execution.

Parameters
manager:ServiceManager

The ServiceManager which this Serviceable uses. Must not be null.

Exceptions
ServiceException:
if an error occurs