Class ProcessEngineServicesResolver

  • All Implemented Interfaces:
    ServicesLookup

    public class ProcessEngineServicesResolver
    extends java.lang.Object
    implements ServicesLookup
    Author:
    Baptiste Mesta
    • Method Summary

      All Methods Instance Methods Concrete 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProcessEngineServicesResolver

        public ProcessEngineServicesResolver()
    • Method Detail

      • lookupOnPlatform

        public <T> T lookupOnPlatform​(java.lang.String serviceName)
        Description copied from interface: ServicesLookup
        lookup for a service on the platform
        Specified by:
        lookupOnPlatform in interface ServicesLookup
        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

        public <T> T lookupOnTenant​(java.lang.Long tenantId,
                                    java.lang.String serviceName)
        Description copied from interface: ServicesLookup
        lookup for a service on the tenant
        Specified by:
        lookupOnTenant in interface ServicesLookup
        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