org.apache.felix.ipojo.junit4osgi.plugin
Class Installer

java.lang.Object
  extended by org.apache.felix.ipojo.junit4osgi.plugin.Installer
All Implemented Interfaces:
BundleActivator

public class Installer
extends Object
implements BundleActivator

Bundle Activator installing bundles in the embedded OSGi. Installed bundles are the junit4osgi framework, the required bundle and the artifact bundle (if enable). Bundles are installed from the local maven repository.

Author:
Felix Project Team

Constructor Summary
Installer(List artifacts, List bundles, org.apache.maven.project.MavenProject project, boolean deployCurrentArtifact)
          Creates a Installer.
 
Method Summary
 void start(BundleContext context)
          Start bundles.
 void stop(BundleContext context)
          Stopping methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Installer

public Installer(List artifacts,
                 List bundles,
                 org.apache.maven.project.MavenProject project,
                 boolean deployCurrentArtifact)
Creates a Installer.

Parameters:
artifacts - the list of artifact containing bundles for the junit4osgi framework.
bundles - the list of bundle URLs to install
project - the current maven project
deployCurrentArtifact - flag enabling/disabling the deployment of the current project artifact
Method Detail

start

public void start(BundleContext context)
Start bundles.

Specified by:
start in interface BundleActivator
Parameters:
context - the bundle context.
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(BundleContext context)
Stopping methods.

Specified by:
stop in interface BundleActivator
Parameters:
context - the bundle context.
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.