Alignment API and Server 4.6 (1875M)

fr.inrialpes.exmo.align.service.osgi
Class OSGIAServProfile

java.lang.Object
  extended by fr.inrialpes.exmo.align.service.osgi.OSGIAServProfile
All Implemented Interfaces:
AlignmentServiceProfile, org.osgi.framework.BundleActivator

public class OSGIAServProfile
extends Object
implements AlignmentServiceProfile, org.osgi.framework.BundleActivator

OSGIAServProvile: OSGI Service profile for the Alignment server


Field Summary
static org.osgi.framework.BundleContext ctxt
           
private  int localId
           
(package private) static org.slf4j.Logger logger
           
private  AServProtocolManager manager
           
private  String myId
           
private  String serverURL
           
 
Constructor Summary
OSGIAServProfile()
           
 
Method Summary
 void close()
          Shutdown the Service and undeclare it from any registery
 void init(Properties params, AServProtocolManager manager)
          Creates the Service object and declares it after any required registery
 void start(org.osgi.framework.BundleContext context)
          Implements BundleActivator.start().
 void stop(org.osgi.framework.BundleContext context)
          Implements BundleActivator.stop().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static final org.slf4j.Logger logger

manager

private AServProtocolManager manager

myId

private String myId

serverURL

private String serverURL

localId

private int localId

ctxt

public static org.osgi.framework.BundleContext ctxt
Constructor Detail

OSGIAServProfile

public OSGIAServProfile()
Method Detail

init

public void init(Properties params,
                 AServProtocolManager manager)
          throws AServException
Description copied from interface: AlignmentServiceProfile
Creates the Service object and declares it after any required registery

Specified by:
init in interface AlignmentServiceProfile
Throws:
AServException

close

public void close()
Description copied from interface: AlignmentServiceProfile
Shutdown the Service and undeclare it from any registery

Specified by:
close in interface AlignmentServiceProfile

start

public void start(org.osgi.framework.BundleContext context)
Implements BundleActivator.start(). Registers an instance of a dictionary service using the bundle context; attaches properties to the service that can be queried when performing a service look-up.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
context - the framework context for the bundle.

stop

public void stop(org.osgi.framework.BundleContext context)
Implements BundleActivator.stop(). Does nothing since the framework will automatically unregister any registered services.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
context - the framework context for the bundle.

Alignment API and Server 4.6 (1875M)

(C) INRIA & friends, 2003-2014