org.eclipse.gemini.blueprint.compendium.internal.cm
Interface ManagedServiceBeanManager

All Known Implementing Classes:
DefaultManagedServiceBeanManager

public interface ManagedServiceBeanManager

Manager dealing with injection and updates of Spring beans configured through the Configuration Admin.

Implementations are responsible for interacting with the Configuration Admin service, for injection/reinjection of properties into the managed beans.

Author:
Costin Leau

Method Summary
 Object register(Object bean)
          Registers the given Spring-managed bean instance with the manager.
 void unregister(Object bean)
          Deregisters the given Spring-managed instance from the manager.
 void updated(Map properties)
          Re-applies injection on the Spring-managed instances using the given properties.
 

Method Detail

register

Object register(Object bean)
Registers the given Spring-managed bean instance with the manager. The manager will apply any existing configuration to the given bean and return the newly configured instance back.

Parameters:
bean - Spring-managed bean instance
Returns:
reinjected bean instace

unregister

void unregister(Object bean)
Deregisters the given Spring-managed instance from the manager. Once deregistered, no configuration updates will be propagated to the given instance.

Parameters:
bean -

updated

void updated(Map properties)
Re-applies injection on the Spring-managed instances using the given properties.

Parameters:
properties - new properties


Copyright © 2006-2012. All Rights Reserved.