org.ops4j.pax.runner.platform.builder
Class AbstractPlatformBuilderActivator

java.lang.Object
  extended by org.ops4j.pax.runner.platform.builder.AbstractPlatformBuilderActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator
Direct Known Subclasses:
Activator, Activator, Activator, Activator

public abstract class AbstractPlatformBuilderActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator

Abstract bundle activator for platform builders.
Registers a platform builder that the extender will automatically create and register a platform based on the registered builder.

Since:
September 01, 2007
Author:
Alin Dreghiciu

Constructor Summary
AbstractPlatformBuilderActivator()
           
 
Method Summary
protected abstract  PlatformBuilder[] createPlatformBuilders(org.osgi.framework.BundleContext bundleContext)
          Platform builders factory method.
 void start(org.osgi.framework.BundleContext bundleContext)
           
 void stop(org.osgi.framework.BundleContext bundleContext)
          Performs cleanup:
* Unregister the platform builder;
* Release bundle context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPlatformBuilderActivator

public AbstractPlatformBuilderActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws java.lang.Exception
Performs cleanup:
* Unregister the platform builder;
* Release bundle context.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)

createPlatformBuilders

protected abstract PlatformBuilder[] createPlatformBuilders(org.osgi.framework.BundleContext bundleContext)
Platform builders factory method. It should return an array of platform builders supported.

Parameters:
bundleContext - current bundle context
Returns:
corresponding platform builder for the passed version


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.