Class Services


  • public class Services
    extends Object
    Factory class to create new Service instances.

    This serves to ensure conflicting definitions of services don't get created.

    • Constructor Detail

      • Services

        public Services()
    • Method Detail

      • create

        @Deprecated
        public static Service create​(String serviceName,
                                     String serviceEndpointPrefix)
        Deprecated.
        Use serviceBuilder() instead
        Create a new service definition.

        If the service has already been registered with different values, an IllegalArgumentException will be raised. If the service has already been registered, the existing definition will be returned.

        Parameters:
        serviceName - The unique service name.
        serviceEndpointPrefix - The endpoint prefix.
        Returns:
        A Service instance.
      • getServiceByName

        public static Service getServiceByName​(String serviceName)
        Get Service instance based on service name.
        Parameters:
        serviceName - service name should be UPPER CASE.
        Returns:
        service instance