Interface ServiceRegistry

  • All Known Implementing Classes:
    DefaultServiceRegistry

    public interface ServiceRegistry
    ServiceRegistry
    Version:
    $Id: $
    Author:
    brozow
    • Method Detail

      • register

        Registration register​(java.lang.Object serviceProvider,
                              java.lang.Class<?>... services)

        register

        Parameters:
        serviceProvider - a Object object.
        services - a Class object.
        Returns:
        a Registration object.
      • register

        Registration register​(java.lang.Object serviceProvider,
                              java.util.Map<java.lang.String,​java.lang.String> properties,
                              java.lang.Class<?>... services)

        register

        Parameters:
        serviceProvider - a Object object.
        properties - a Map object.
        services - a Class object.
        Returns:
        a Registration object.
      • findProvider

        <T> T findProvider​(java.lang.Class<T> seviceInterface)

        findProvider

        Type Parameters:
        T - a T object.
        Parameters:
        seviceInterface - a Class object.
        Returns:
        a T object.
      • findProvider

        <T> T findProvider​(java.lang.Class<T> serviceInterface,
                           java.lang.String filter)

        findProvider

        Type Parameters:
        T - a T object.
        Parameters:
        serviceInterface - a Class object.
        filter - a String object.
        Returns:
        a T object.
      • findProviders

        <T> java.util.Collection<T> findProviders​(java.lang.Class<T> service)

        findProviders

        Type Parameters:
        T - a T object.
        Parameters:
        service - a Class object.
        Returns:
        a Collection object.
      • findProviders

        <T> java.util.Collection<T> findProviders​(java.lang.Class<T> service,
                                                  java.lang.String filter)

        findProviders

        Type Parameters:
        T - a T object.
        Parameters:
        service - a Class object.
        filter - a String object.
        Returns:
        a Collection object.
      • addListener

        <T> void addListener​(java.lang.Class<T> service,
                             RegistrationListener<T> listener)

        addListener

        Type Parameters:
        T - a T object.
        Parameters:
        service - a Class object.
        listener - a RegistrationListener object.
      • addListener

        <T> void addListener​(java.lang.Class<T> service,
                             RegistrationListener<T> listener,
                             boolean notifyForExistingProviders)

        addListener

        Type Parameters:
        T - a T object.
        Parameters:
        service - a Class object.
        listener - a RegistrationListener object.
        notifyForExistingProviders - a boolean.
      • removeListener

        <T> void removeListener​(java.lang.Class<T> service,
                                RegistrationListener<T> listener)

        removeListener

        Type Parameters:
        T - a T object.
        Parameters:
        service - a Class object.
        listener - a RegistrationListener object.
      • addRegistrationHook

        void addRegistrationHook​(RegistrationHook hook,
                                 boolean notifyForExistingProviders)

        addRegistrationHook

        Parameters:
        hook - a RegistrationHook object.
        notifyForExistingProviders - a boolean.
      • unregisterAll

        void unregisterAll​(java.lang.Class<?> clazz)
        Parameters:
        clazz -