public class Modules extends Object
Constructor and Description |
---|
Modules() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
newInstance(Class<T> interfaze,
Module module,
String className)
Create a new instance of an object within a module.
|
static <T> T |
rawInstance(Class<T> interfaze,
Module module,
String className)
Create a new instance of an object within a module.
|
static <T> T |
wrapInstance(Class<T> interfaze,
T instance)
Wrap an object created in the context of a Shim interface with the context class loader proxy.
|
public static <T> T newInstance(Class<T> interfaze, Module module, String className)
Module
. The returned instance will be a proxy onto the underlying class.interfaze
- module
- className
- public static <T> T wrapInstance(Class<T> interfaze, T instance)
interfaze
- the interface type of the classinstance
- an instance of the class already createdpublic static <T> T rawInstance(Class<T> interfaze, Module module, String className)
Module
. The returned instance will not be a proxy.interfaze
- module
- className
- Copyright © 2021 Actian Corporation. All rights reserved.