Interface ServicesLookup


  • public interface ServicesLookup
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T lookupOnPlatform​(java.lang.String serviceName)
      lookup for a service on the platform
      <T> T lookupOnTenant​(java.lang.Long tenantId, java.lang.String serviceName)
      lookup for a service on the tenant
    • Method Detail

      • lookupOnPlatform

        <T> T lookupOnPlatform​(java.lang.String serviceName)
        lookup for a service on the platform
        Type Parameters:
        T - type of the service to return
        Parameters:
        serviceName - name of the service, it is the id of the bean in the spring context
        Returns:
        the service
      • lookupOnTenant

        <T> T lookupOnTenant​(java.lang.Long tenantId,
                             java.lang.String serviceName)
        lookup for a service on the tenant
        Type Parameters:
        T - type of the service to return
        Parameters:
        tenantId - id of the tenant on which to look
        serviceName - name of the service, it is the id of the bean in the spring context
        Returns:
        the service