Interface RegisterableService


  • public interface RegisterableService
    An optional interface that may be implemented by service provider objects.

    If this interface is implemented, the service provider objects will receive notification of registration and deregistration from the ServiceRegistry.

    Version:
    $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/util/service/RegisterableService.java#1 $
    Author:
    Harald Kuhr
    See Also:
    ServiceRegistry
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onDeregistration​(ServiceRegistry pRegistry, java.lang.Class pCategory)
      Called right after this service provider object is removed from the given category of the given ServiceRegistry.
      void onRegistration​(ServiceRegistry pRegistry, java.lang.Class pCategory)
      Called right after this service provider object is added to the given category of the given ServiceRegistry.
    • Method Detail

      • onRegistration

        void onRegistration​(ServiceRegistry pRegistry,
                            java.lang.Class pCategory)
        Called right after this service provider object is added to the given category of the given ServiceRegistry.
        Parameters:
        pRegistry - the ServiceRegistry this was added to
        pCategory - the category this was added to
      • onDeregistration

        void onDeregistration​(ServiceRegistry pRegistry,
                              java.lang.Class pCategory)
        Called right after this service provider object is removed from the given category of the given ServiceRegistry.
        Parameters:
        pRegistry - the ServiceRegistry this was added to
        pCategory - the category this was added to