org.glassfish.extras.osgicontainer
Class OSGiDeployer

java.lang.Object
  extended by org.glassfish.extras.osgicontainer.OSGiDeployer
All Implemented Interfaces:
Deployer<OSGiContainer,OSGiDeployedBundle>

@Service
public class OSGiDeployer
extends java.lang.Object
implements Deployer<OSGiContainer,OSGiDeployedBundle>

OSGi deployer, takes care of loading and cleaning modules from the OSGi runtime.

Author:
Jerome Dochez, Sanjeeb Sahoo

Constructor Summary
OSGiDeployer()
           
 
Method Summary
 void clean(DeploymentContext context)
           
 MetaData getMetaData()
           
 OSGiDeployedBundle load(OSGiContainer container, DeploymentContext context)
           
<V> V
loadMetaData(java.lang.Class<V> type, DeploymentContext context)
           
 boolean prepare(DeploymentContext context)
           
 void unload(OSGiDeployedBundle appContainer, DeploymentContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiDeployer

public OSGiDeployer()
Method Detail

load

public OSGiDeployedBundle load(OSGiContainer container,
                               DeploymentContext context)
Specified by:
load in interface Deployer<OSGiContainer,OSGiDeployedBundle>

unload

public void unload(OSGiDeployedBundle appContainer,
                   DeploymentContext context)
Specified by:
unload in interface Deployer<OSGiContainer,OSGiDeployedBundle>

clean

public void clean(DeploymentContext context)
Specified by:
clean in interface Deployer<OSGiContainer,OSGiDeployedBundle>

getMetaData

public MetaData getMetaData()
Specified by:
getMetaData in interface Deployer<OSGiContainer,OSGiDeployedBundle>

loadMetaData

public <V> V loadMetaData(java.lang.Class<V> type,
                          DeploymentContext context)
Specified by:
loadMetaData in interface Deployer<OSGiContainer,OSGiDeployedBundle>

prepare

public boolean prepare(DeploymentContext context)
Specified by:
prepare in interface Deployer<OSGiContainer,OSGiDeployedBundle>


Copyright © 2012 GlassFish Community. All Rights Reserved.