org.apache.felix.servicebinder
Interface Lifecycle

All Known Implementing Classes:
ArchitectureServiceImpl

public interface Lifecycle

Instances created by the service binder, either via the GenericActivator or the GenericFactory, may implement this interface to receive notification of object life cycle events. See each interface method for a precise description of when the method is invoked.

Author:
Felix Project Team

Method Summary
 void activate()
          This method is called after the instance is created, all of its dependencies are valid, and all implemented services are registered.
 void deactivate()
          This method is called prior to instance disposal.
 

Method Detail

activate

void activate()
This method is called after the instance is created, all of its dependencies are valid, and all implemented services are registered.


deactivate

void deactivate()
This method is called prior to instance disposal. At the time of invocation, all dependencies are still valid and all services are still registered. Be aware that at this point some dependent services may have been shutdown and using them may result in error conditions.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.