Interface Whiteboard

    • Method Detail

      • register

        <T> Registration register​(Class<T> type,
                                  T service,
                                  Map<?,​?> properties)
        Publishes the given service to the whiteboard. Use the returned registration object to unregister the service.
        Parameters:
        type - type of the service
        service - service instance
        properties - service properties
        Returns:
        service registration
      • track

        <T> Tracker<T> track​(Class<T> type)
        Starts tracking services of the given type.
        Parameters:
        type - type of the services to track
        Returns:
        service tracker
      • track

        <T> Tracker<T> track​(Class<T> type,
                             Map<String,​String> filterProperties)
        Starts tracking services of the given type, with given attributes.
        Parameters:
        type - type of the services to track
        filterProperties - only services with these properties will be tracked. Null keys are not permitted. Null values means that the property should be absent.
        Returns:
        service tracker