Interface IServiceLocator

  • All Known Implementing Classes:
    DynamicServiceLocator

    public interface IServiceLocator
    A service locator looks up services. This is the central authority for adempiere service definition, because each service defined has to be looked up via this interface. A service in adempiere is an implementation for the registered interface, expose through osgi service registry
    Author:
    viola
    • Method Detail

      • locate

        <T> IServiceHolder<T> locate​(Class<T> type)
        Parameters:
        type - service interface
        Returns:
        holder for dynamic service
      • locate

        <T> IServiceHolder<T> locate​(Class<T> type,
                                     String componentName,
                                     ServiceQuery query)
        Parameters:
        type -
        componentName - service component name
        query -
        Returns:
        holder for dynamic service
      • list

        <T> IServicesHolder<T> list​(Class<T> type)
        Parameters:
        type -
        Returns:
        holder for list of dynamic service
      • list

        <T> IServicesHolder<T> list​(Class<T> type,
                                    String componentName,
                                    ServiceQuery query)
        Parameters:
        type -
        componentName - osgi service component name
        query -
        Returns:
        holder for list of dynamic service