Interface ServiceRegistry

  • All Known Implementing Classes:
    DefaultServiceRegistry

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

      • findProvider

        <T> T findProvider​(Class<T> seviceInterface)

        findProvider

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

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

        findProvider

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

        <T> Collection<T> findProviders​(Class<T> service)

        findProviders

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

        <T> Collection<T> findProviders​(Class<T> service,
                                        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​(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.
      • addRegistrationHook

        void addRegistrationHook​(RegistrationHook hook,
                                 boolean notifyForExistingProviders)

        addRegistrationHook

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

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