Child pages
  • How to convert an existing AM service from schema xml based service to config annotation API based service

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create an Interface to represent the configuration details of in schema file that is being replaced  
    1. Create a new service interface extending the ServiceComponentConfig interface to represent the service.
    2. If the service that is being converted has realm configuration then the service interface must extend the RealmConfiguration interface. The service interface should encompass a subinterface with the realm scope with methods on this interface annotated with Attribute annotation to represent the configuration attributes in the XML schema.
    3. If the service that is being converted has global configuration then the service interface must extend the GlobalConfiguration interface. The service interface should encompass a subinterface with the global scope with methods on this interface annotated with Attribute annotation to represent the configuration attributes in the XML schema.
  2. Use the newly created service interface to look up the service configuration . Add and adding listeners to take appropriate action when the config/schema changes. 
     

...