Package wt.services

Class ServiceFactory

java.lang.Object
wt.services.ServiceFactory

public final class ServiceFactory extends Object
Creates implementations of Windchill service interfaces. Service interfaces must have implementations that also implement Manager. This is typically achieved by extending StandardManager. In addition to implementing Manager, the service interface/implementation mapping must be registered in wt.properties.

To expose a remote interface via the ServiceFactory, you must annotate the interface with RemoteInterface:

 @RemoteInterface
 public interface MyService {
    ...
 }
 
Once you have registered your service, you can retrieve an implementation of it using the following code:
 MyService service = ServiceFactory.getService(MyService.class);
 
Supported API: true

Extendable: false
  • Method Details

    • getService

      public static <T> T getService(Class<T> serviceClass)
      Get an implementation of the given service interface

      Supported API: true
      Type Parameters:
      T -
      Parameters:
      serviceClass -
      Returns: