fr.dyade.aaa.common
Class Service

java.lang.Object
  extended by fr.dyade.aaa.common.Service

public class Service
extends java.lang.Object

This class is used to register an AgentServer service as an OSGi service. It is needed because AgentServer services are accessed with static methods and are not instantiable.


Field Summary
static java.lang.String SERVICE_NAME_PROP
          This property must be added when registering an A3 service to specify the class name of the registered service.
 
Constructor Summary
Service()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME_PROP

public static final java.lang.String SERVICE_NAME_PROP
This property must be added when registering an A3 service to specify the class name of the registered service. Typically, the following is done to register an A3 service in the OSGi world :

Properties props = new Properties();
props.put(Service.SERVICE_NAME_PROP, MyService.class.getName());
bundleContext.registerService(Service.class.getName(), new Service(), props);

See Also:
Constant Field Values
Constructor Detail

Service

public Service()


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.