Interface ServiceRegistry

    • Method Detail

      • getOrder

        default int getOrder()
        Description copied from interface: Ordered
        Gets the order.

        Use low numbers for higher priority. Normally the sorting will start from 0 and move upwards. So if you want to be last then use Integer.MAX_VALUE or eg Ordered.LOWEST.

        Specified by:
        getOrder in interface Ordered
        Returns:
        the order
      • getAttributes

        default Map<String,​Object> getAttributes()
        Attributes associated to the service.
      • register

        void register​(ServiceDefinition definition)
        Register the service definition.
        Parameters:
        definition - the service definition
      • deregister

        void deregister​(ServiceDefinition definition)
        Remove the service definition.
        Parameters:
        definition - the service definition