Package wt.services
Class ServiceFactory
java.lang.Object
wt.services.ServiceFactory
Creates implementations of Windchill service interfaces. Service interfaces
must have implementations that also implement
Extendable: false
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 Summary
Modifier and TypeMethodDescriptionstatic <T> TgetService(Class<T> serviceClass) Get an implementation of the given service interface
Supported API: true
-
Method Details
-
getService
Get an implementation of the given service interface
Supported API: true- Type Parameters:
T-- Parameters:
serviceClass-- Returns:
-