com.atlassian.plugin.osgi.factory
Class OsgiPluginFactory

java.lang.Object
  extended by com.atlassian.plugin.osgi.factory.OsgiPluginFactory
All Implemented Interfaces:
PluginFactory

public class OsgiPluginFactory
extends java.lang.Object
implements PluginFactory

Plugin loader that starts an OSGi container and loads plugins into it, wrapped as OSGi bundles.


Constructor Summary
OsgiPluginFactory(java.lang.String pluginDescriptorFileName, OsgiContainerManager osgi)
           
 
Method Summary
 java.lang.String canCreate(PluginArtifact pluginArtifact)
           
 Plugin create(DeploymentUnit deploymentUnit, ModuleDescriptorFactory moduleDescriptorFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiPluginFactory

public OsgiPluginFactory(java.lang.String pluginDescriptorFileName,
                         OsgiContainerManager osgi)
Method Detail

canCreate

public java.lang.String canCreate(PluginArtifact pluginArtifact)
                           throws PluginParseException
Specified by:
canCreate in interface PluginFactory
Throws:
PluginParseException

create

public Plugin create(DeploymentUnit deploymentUnit,
                     ModuleDescriptorFactory moduleDescriptorFactory)
              throws PluginParseException
Specified by:
create in interface PluginFactory
Throws:
PluginParseException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.