Coalevo Logo

net.coalevo.foundation.util
Class BundleConfiguration

java.lang.Object
  extended by net.coalevo.foundation.model.BaseIdentifiable
      extended by net.coalevo.foundation.model.BaseService
          extended by net.coalevo.foundation.util.BundleConfiguration
All Implemented Interfaces:
Identifiable, Service, org.osgi.service.cm.ManagedService

public class BundleConfiguration
extends BaseService
implements org.osgi.service.cm.ManagedService

Provides a base implementation for a unified bundle configuration.

Version:
1.0.0 (10/02/2009)
Author:
Dieter Wimberger (wimpi)

Field Summary
 
Fields inherited from class net.coalevo.foundation.model.BaseService
m_Actions
 
Fields inherited from class net.coalevo.foundation.model.BaseIdentifiable
m_Identifier
 
Constructor Summary
BundleConfiguration(java.lang.String identifier)
           
 
Method Summary
 boolean activate(org.osgi.framework.BundleContext bc)
          Activates this Service.
 boolean deactivate()
          Deactivates this Service.
 ConfigurationMediator getConfigurationMediator()
          Returns the associated ConfigurationMediator.
 void updated(java.util.Dictionary conf)
           
 
Methods inherited from class net.coalevo.foundation.model.BaseService
getActions, getAgentIdentifier
 
Methods inherited from class net.coalevo.foundation.model.BaseIdentifiable
equals, getIdentifier, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.coalevo.foundation.model.Identifiable
getIdentifier
 

Constructor Detail

BundleConfiguration

public BundleConfiguration(java.lang.String identifier)
Method Detail

getConfigurationMediator

public ConfigurationMediator getConfigurationMediator()
Returns the associated ConfigurationMediator.

Returns:
a ConfigurationMediator instance.

updated

public void updated(java.util.Dictionary conf)
             throws org.osgi.service.cm.ConfigurationException
Specified by:
updated in interface org.osgi.service.cm.ManagedService
Throws:
org.osgi.service.cm.ConfigurationException

activate

public boolean activate(org.osgi.framework.BundleContext bc)
Description copied from interface: Service
Activates this Service.

Specified by:
activate in interface Service
Returns:
true if activated, false otherwise.

deactivate

public boolean deactivate()
Description copied from interface: Service
Deactivates this Service.

Specified by:
deactivate in interface Service
Returns:
tru if deactivated, false otherwise.

Coalevo Logo

(c) 2004-2009 VFI (http://www.vfi.or.at)