java.lang.Object
omix.util.wrap.Wrapper
public final class Wrapper extends Object
-
Method Summary
Modifier and Type Method Description static <T> ArrayWrapper<T>
createArray(Class<T> interfaceComponentType, Class<?> wrappedComponentType, int length)
static <T> T
createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType)
static <T> T
createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType, MethodType constructorParameterType, Object... args)
static <T> T
createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType, ParameterConverter parameterConverter)
static <T> T
createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType, ParameterConverter parameterConverter, MethodType constructorParameterType, Object... args)
static Object
unwrap(Object wrapper)
static Object
unwrapArray(Class<?> wrappedTopLevelComponentType, Object[] wrappingArray)
static <T> T
wrapInstance(Class<T> interfaceType, Object wrappedObject)
static <T> T
wrapInstance(Class<T> interfaceType, ParameterConverter parameterConverter, Object wrappedObject)
static <T> T
wrapStatic(Class<T> interfaceType, Class<?> wrappedType)
static <T> T
wrapStatic(Class<T> interfaceType, Class<?> wrappedType, ParameterConverter parameterConverter)
-
Method Details
-
createArray
public static <T> ArrayWrapper<T> createArray(Class<T> interfaceComponentType, Class<?> wrappedComponentType, int length) throws IllegalAccessException- Throws:
IllegalAccessException
-
createWrappedInstance
public static <T> T createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType) throws IllegalArgumentException, InvocationTargetException, IllegalAccessException, NoSuchMethodException -
createWrappedInstance
public static <T> T createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType, ParameterConverter parameterConverter) throws IllegalArgumentException, InvocationTargetException, IllegalAccessException, NoSuchMethodException -
wrapStatic
public static <T> T wrapStatic(Class<T> interfaceType, Class<?> wrappedType) throws IllegalArgumentException, IllegalAccessException -
wrapStatic
public static <T> T wrapStatic(Class<T> interfaceType, Class<?> wrappedType, ParameterConverter parameterConverter) throws IllegalArgumentException, IllegalAccessException -
createWrappedInstance
public static <T> T createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType, MethodType constructorParameterType, Object... args) throws IllegalArgumentException, InvocationTargetException, IllegalAccessException, NoSuchMethodException -
createWrappedInstance
public static <T> T createWrappedInstance(Class<T> interfaceType, Class<?> wrappedType, ParameterConverter parameterConverter, MethodType constructorParameterType, Object... args) throws IllegalArgumentException, InvocationTargetException, IllegalAccessException, NoSuchMethodException -
wrapInstance
public static <T> T wrapInstance(Class<T> interfaceType, Object wrappedObject) throws IllegalArgumentException, IllegalAccessException -
wrapInstance
public static <T> T wrapInstance(Class<T> interfaceType, ParameterConverter parameterConverter, Object wrappedObject) throws IllegalArgumentException, IllegalAccessException -
unwrapArray
-
unwrap
-