org.universAAL.middleware.connectors.deploy.karaf
Class KarafDeployConnector

Package class diagram package KarafDeployConnector
java.lang.Object
  extended by org.universAAL.middleware.connectors.deploy.karaf.KarafDeployConnector
All Implemented Interfaces:
Connector, DeployConnector, SharedObjectListener

public class KarafDeployConnector
extends Object
implements DeployConnector, SharedObjectListener

Implementation of the deploy Connector for the Karaf OSGi implementation

Version:
$LastChangedRevision$ ( $LastChangedDate$ )
Author:
Michele Girolami, Stefano Lenzi

Constructor Summary
KarafDeployConnector(ModuleContext context)
           
 
Method Summary
 void dispose()
           
 String getDescription()
           
 String getName()
           
 String getProvider()
           
 String getVersion()
           
 boolean init()
           
 void installPart(File zipfile, UAPPCard card)
          This method allows to install a part on the running container
 void loadConfigurations(Dictionary configurations)
          This method allows the connector to obtain all the required configurations
 UAPPPartStatus m_installPart(File zipfile, UAPPCard card)
           
 void sharedObjectAdded(Object service, Object arg1)
           
 void sharedObjectRemoved(Object service)
           
 void uninstallPart(UAPPCard card)
          This method allows to uninstall a part on the running container
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KarafDeployConnector

public KarafDeployConnector(ModuleContext context)
Method Detail

init

public boolean init()
Specified by:
init in interface Connector

getDescription

public String getDescription()
Specified by:
getDescription in interface Connector

getName

public String getName()
Specified by:
getName in interface Connector

getProvider

public String getProvider()
Specified by:
getProvider in interface Connector

getVersion

public String getVersion()
Specified by:
getVersion in interface Connector

loadConfigurations

public void loadConfigurations(Dictionary configurations)
Description copied from interface: Connector
This method allows the connector to obtain all the required configurations

Specified by:
loadConfigurations in interface Connector

sharedObjectAdded

public void sharedObjectAdded(Object service,
                              Object arg1)
Specified by:
sharedObjectAdded in interface SharedObjectListener

sharedObjectRemoved

public void sharedObjectRemoved(Object service)
Specified by:
sharedObjectRemoved in interface SharedObjectListener

installPart

public void installPart(File zipfile,
                        UAPPCard card)
Description copied from interface: DeployConnector
This method allows to install a part on the running container

Specified by:
installPart in interface DeployConnector
card - The reference information of the part of the application within a service to install

m_installPart

public UAPPPartStatus m_installPart(File zipfile,
                                    UAPPCard card)

dispose

public void dispose()
Specified by:
dispose in interface Connector

uninstallPart

public void uninstallPart(UAPPCard card)
Description copied from interface: DeployConnector
This method allows to uninstall a part on the running container

Specified by:
uninstallPart in interface DeployConnector
Parameters:
card - The reference information of the part of the application within a service to install


Copyright © 2014 universAAL Consortium. All Rights Reserved.