java.lang.Object
com.pervasive.datarush.modules.Modules
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TnewInstance(Class<T> interfaze, Module module, String className) Create a new instance of an object within a module.static <T> TrawInstance(Class<T> interfaze, Module module, String className) Create a new instance of an object within a module.static <T> TwrapInstance(Class<T> interfaze, T instance) Wrap an object created in the context of a Shim interface with the context class loader proxy.
-
Constructor Details
-
Modules
public Modules()
-
-
Method Details
-
newInstance
Create a new instance of an object within a module. The object is expected to take a constructor of typeModule. The returned instance will be a proxy onto the underlying class.- Parameters:
interfaze-module-className-- Returns:
-
wrapInstance
Wrap an object created in the context of a Shim interface with the context class loader proxy. The proxy handles setting the context class loader whenever a method of the given object is invoked. This is needed for Shim methods that return objects that expose methods the Shim user calls.- Parameters:
interfaze- the interface type of the classinstance- an instance of the class already created- Returns:
- a wrapped instance of the class (wrapped with the context class loader proxy)
-
rawInstance
Create a new instance of an object within a module. The object is expected to take a constructor of typeModule. The returned instance will not be a proxy.- Parameters:
interfaze-module-className-- Returns:
-