Class ServiceRegistry

java.lang.Object
org.serviceconnector.registry.Registry<String,Service>
org.serviceconnector.registry.ServiceRegistry
All Implemented Interfaces:
IRegistryMXBean

public final class ServiceRegistry extends Registry<String,Service>
The Class ServiceRegistry. Registry stores entries for properly configured services.
Author:
JTraber
  • Constructor Details

    • ServiceRegistry

      public ServiceRegistry()
  • Method Details

    • addService

      public void addService(String key, Service service)
      Adds the service.
      Parameters:
      key - the key
      service - the service
    • getService

      public Service getService(String key)
      Gets the service.
      Parameters:
      key - the key
      Returns:
      the service
    • getServices

      public Service[] getServices()
      Gets the services.
      Returns:
      the services
    • removeService

      public void removeService(Service service)
      Removes the service.
      Parameters:
      service - the service
    • removeService

      public Service removeService(String key)
      Removes the service.
      Parameters:
      key - the key
      Returns:
      the service
    • dump

      public void dump(XMLDumpWriter writer) throws Exception
      Dump the services into the xml writer.
      Parameters:
      writer - the writer
      Throws:
      Exception - the exception