nl.gx.webmanager.wcb.foundation
Class ComponentBundleActivatorBase

java.lang.Object
  extended by org.apache.felix.dependencymanager.DependencyActivatorBase
      extended by nl.gx.webmanager.wcb.foundation.ComponentBundleActivatorBase
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
Activator, AuthorizationActivator, ElementComponentTypeActivator, FormComponentTypeActivator, MediaItemComponentTypeActivator, PageMetaDataComponentTypeActivator, PanelComponentTypeActivator, PresentationComponentTypeActivator, ProfileProviderComponentTypeActivator, ServiceComponentTypeActivator, ServletComponentTypeActivator

public abstract class ComponentBundleActivatorBase
extends org.apache.felix.dependencymanager.DependencyActivatorBase

This is the baseclass for any WCB activator class providing registration in the OSGi services framework.

Author:
bramk

Field Summary
protected static java.util.logging.Logger LOG
           
 
Constructor Summary
ComponentBundleActivatorBase()
           
 
Method Summary
 void destroy(org.osgi.framework.BundleContext bundleContext, org.apache.felix.dependencymanager.DependencyManager dependencyManager)
          
protected  org.osgi.framework.BundleContext getBundleContext()
          Provides access to bundleContext for subClasses.
protected abstract  ComponentBundleDefinition getBundleDefinition()
          Concrete implementations need to implements this method in order to specify the components the componentbundle whishes to register.
protected  org.apache.felix.dependencymanager.DependencyManager getDependencyManagerContext()
          Provides access to dependencyManager for subClasses.
 void init(org.osgi.framework.BundleContext bundleContext, org.apache.felix.dependencymanager.DependencyManager dependencyManager)
          
 
Methods inherited from class org.apache.felix.dependencymanager.DependencyActivatorBase
createConfigurationDependency, createService, createServiceDependency, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final java.util.logging.Logger LOG
Constructor Detail

ComponentBundleActivatorBase

public ComponentBundleActivatorBase()
Method Detail

init

public void init(org.osgi.framework.BundleContext bundleContext,
                 org.apache.felix.dependencymanager.DependencyManager dependencyManager)
          throws java.lang.Exception

Specified by:
init in class org.apache.felix.dependencymanager.DependencyActivatorBase
Throws:
java.lang.Exception

destroy

public final void destroy(org.osgi.framework.BundleContext bundleContext,
                          org.apache.felix.dependencymanager.DependencyManager dependencyManager)
                   throws java.lang.Exception

Specified by:
destroy in class org.apache.felix.dependencymanager.DependencyActivatorBase
Throws:
java.lang.Exception

getBundleContext

protected final org.osgi.framework.BundleContext getBundleContext()
Provides access to bundleContext for subClasses.

Returns:
the bundleContext

getDependencyManagerContext

protected final org.apache.felix.dependencymanager.DependencyManager getDependencyManagerContext()
Provides access to dependencyManager for subClasses.

Returns:
the dependencyManager

getBundleDefinition

protected abstract ComponentBundleDefinition getBundleDefinition()
Concrete implementations need to implements this method in order to specify the components the componentbundle whishes to register.

Returns:
the componentBudleDefinition


Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.