Interface Serviceable
-
public interface ServiceableA 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 aServiceableis that it is a user. TheServiceableis able to useObjects managed by theServiceManagerit was initialized with. As part of the contract with the system, the instantiating entity must call theservicemethod before theServiceablecan be considered valid.- Version:
- $Id: Serviceable.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
- Author:
- Avalon Development Team
- See Also:
ServiceManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidservice(ServiceManager manager)Pass theServiceManagerto theServiceable.
-
-
-
Method Detail
-
service
void service(ServiceManager manager) throws ServiceException
Pass theServiceManagerto theServiceable. TheServiceableimplementation should use the specifiedServiceManagerto acquire the components it needs for execution.- Parameters:
manager- TheServiceManagerwhich thisServiceableuses. Must not benull.- Throws:
ServiceException- if an error occurs
-
-