Class ServiceProvider<T>

java.lang.Object
com.appiancorp.suiteapi.common.ServiceProvider<T>
Type Parameters:
T - the service class to return
All Implemented Interfaces:
Provider<T>

public class ServiceProvider<T> extends Object implements Provider<T>
Provider implementation which will return a service from the given ServiceContext.
  • Constructor Details

  • Method Details

    • get

      public T get()
      Description copied from interface: Provider
      Provides an instance of T. Must never return null.
      Specified by:
      get in interface Provider<T>
      Returns:
    • create

      public static Map<Class<?>,Provider<?>> create(ServiceContext ctx)
      Provides a default implementation of all the known Services.
      See Also: