ServiceLifecycleManager (Fulcrum YAAFI 1.0.9-SNAPSHOT API) JavaScript is disabled on your browser. Skip navigation links Overview Package Class Use Tree Deprecated Index Help Prev Class Next Class Frames No Frames All Classes Summary:  Nested |  Field |  Constr |  Method Detail:  Field |  Constr |  Method org.apache.fulcrum.yaafi.framework.container Interface ServiceLifecycleManager All Known Subinterfaces: ServiceContainer All Known Implementing Classes: ServiceContainerImpl public interface ServiceLifecycleManager Interface for managing the lifecycle of services. It provides methods to get metadata about the service components reconfiguring a single service decommissioning a signle service Author: Siegfried Goeschl Method Summary All Methods Instance Methods Abstract Methods  Modifier and Type Method and Description void decommission(String name) Decommision the given service by calling Startable.stop() and Disposable.dispose(). RoleEntry[] getRoleEntries() Get a list of all RoleEntries. RoleEntry getRoleEntry(String name) Get a RoleEntryImpl for a given service void reconfigure(String[] names) Reconfigures a set of services by calling Suspendable.suspend(), Reconfigurable.reconfigure() and Suspendable.resume(). Method Detail getRoleEntry RoleEntry getRoleEntry(String name) throws org.apache.avalon.framework.service.ServiceException Get a RoleEntryImpl for a given service Parameters: name - the name of the service component Returns: the RoleEntryImpl Throws: org.apache.avalon.framework.service.ServiceException - the service was not found getRoleEntries RoleEntry[] getRoleEntries() Get a list of all RoleEntries. Returns: a list of RoleEntries reconfigure void reconfigure(String[] names) throws org.apache.avalon.framework.service.ServiceException, org.apache.avalon.framework.configuration.ConfigurationException Reconfigures a set of services by calling Suspendable.suspend(), Reconfigurable.reconfigure() and Suspendable.resume(). Parameters: names - the set of services to be reconfigured Throws: org.apache.avalon.framework.service.ServiceException - one of the service was not found org.apache.avalon.framework.configuration.ConfigurationException - the reconfiguration failed decommission void decommission(String name) throws org.apache.avalon.framework.service.ServiceException Decommision the given service by calling Startable.stop() and Disposable.dispose(). The state of the service component is the same as using lazy initialization. Therefore a new service instance will be created if the service is reused again. If you are keeping an instance of the service you are out of luck. Parameters: name - the name of the service Throws: org.apache.avalon.framework.service.ServiceException - the service was not found Skip navigation links Overview Package Class Use Tree Deprecated Index Help Prev Class Next Class Frames No Frames All Classes Summary:  Nested |  Field |  Constr |  Method Detail:  Field |  Constr |  Method Copyright © 2004–1970 The Apache Software Foundation. All rights reserved.