Serviceable (Avalon Framework 4.1.5 API)
Keywords: org.apache.avalon.framework.service.Serviceable interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.avalon.framework.service
Interface Serviceable

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 `Object`s 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.

Version:
  CVS $Revision: 1.17 $ $Date: 2003/02/11 15:58:42 $
Author:
  Avalon Development Team
See Also:
  `ServiceManager`

Method Summary
`void` | `service(ServiceManager manager)` Pass the `ServiceManager` to the `Serviceable`.

Method Detail

### service

    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` - The `ServiceManager` which this `Serviceable` uses. Must not be `null`.
  Throws:
    `ServiceException` - if an error occurs

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © Apache Software Foundation. All Rights Reserved.