Interface IServiceLocator

All Known Implementing Classes:
DynamicServiceLocator

public interface IServiceLocator
Interface for dynamic discovery of services.
This is the primary entry point for iDempiere service discovery.
Author:
viola
  • Method Details

    • locate

      <T> IServiceHolder<T> locate(Class<T> type)
      Locate matching service by type (order by service.ranking priority)
      Parameters:
      type - service interface
      Returns:
      holder for dynamic service
    • locate

      <T> IServiceHolder<T> locate(Class<T> type, ServiceQuery query)
      Locate matching service by type and query expression
      Parameters:
      type -
      query -
      Returns:
      holder for service
    • locate

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

      <T> IServicesHolder<T> list(Class<T> type)
      Find all matching services by type
      Parameters:
      type -
      Returns:
      holder for list of dynamic service
    • list

      <T> IServicesHolder<T> list(Class<T> type, ServiceQuery query)
      Find all matching services by type and query expression
      Parameters:
      type -
      query -
      Returns:
      holder for list of dynamic service
    • list

      <T> IServicesHolder<T> list(Class<T> type, String componentName, ServiceQuery query)
      Find all matching services by component name and query expression
      Parameters:
      type -
      componentName - osgi service component name
      query -
      Returns:
      holder for list of dynamic service