Class A3ManagedService

  • All Implemented Interfaces:
    org.osgi.service.cm.ManagedService

    public class A3ManagedService
    extends CommonService
    implements org.osgi.service.cm.ManagedService
    Start the a3 server with a ConfigAdmin file.

    The default values

    • sid (server id) : 0
    • storage : s0
    • pathToConf : "."

    The reserved words for properties:
    • sid
    • storage
    • pathToConf

    A simple example:
      <configadmin>
       <configuration pid="fr.dyade.aaa.agent.services.A3ManagedService">
         <property name="sid">0</property>
         <property name="storage">your_path/s0</property>
         <property name="pathToConf">your_path/conf</property>
         <!--  properties  -->
         <property name="Transaction">fr.dyade.aaa.util.NTransaction</property>
       </configuration>
      </configadmin>
     
    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • registration

        private org.osgi.framework.ServiceRegistration registration
      • initialized

        private boolean initialized
    • Constructor Detail

      • A3ManagedService

        public A3ManagedService​(org.osgi.framework.BundleContext bundleContext)
                         throws Exception
        Throws:
        Exception
    • Method Detail

      • getName

        public String getName()
      • updated

        public void updated​(Dictionary properties)
                     throws org.osgi.service.cm.ConfigurationException
        Specified by:
        updated in interface org.osgi.service.cm.ManagedService
        Overrides:
        updated in class CommonService
        Throws:
        org.osgi.service.cm.ConfigurationException