Interface InstanceUtil
public interface InstanceUtil
Instance utility for create object and initialize values of object
- Author:
- Ram Kishor
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Constructor<?>constructor(Class<?> _class, Object... params) Get constructor with argumentsgetAllWithOutRelField(Object object) static ObjectgetImpletationInstanse(Object object) static <T> TgetInstance(Class<?> _class, Map _map) Get instance of class with arguments and init values mapstatic <T> TGet instance of class with arguments and init values mapstatic <T> TgetInstance(Class<T> _class, Object... params) Get instance of class with argumentsstatic <T> TgetInstance(Constructor<?> constructor, Object... params) static <T> TgetInstance(String _className, Object... params) Get instance of class with argumentsstatic <T> TgetSingletonInstance(Class<?> _class, Object... params) Get private or singleton instance of class with argumentsstatic <T> TGet private or singleton instance of class with arguments and init values mapstatic <T> TgetSingletonInstance(String _class, Object... params) static booleanisAssignable(Class<?> cls)
-
Method Details
-
isAssignable
-
constructor
Get constructor with arguments- Parameters:
_class-params-- Returns:
- constructor
-
getInstance
Get instance of class with arguments- Parameters:
_className-params-- Returns:
- object
-
getInstance
-
getInstance
Get instance of class with arguments- Parameters:
_class-params-- Returns:
- object
-
getInstance
Get instance of class with arguments and init values map- Parameters:
_class-_map-_params-- Returns:
- object
-
getInstance
Get instance of class with arguments and init values map- Parameters:
_class-_map-_params-- Returns:
- object
-
getSingletonInstance
Get private or singleton instance of class with arguments- Parameters:
_class-params-- Returns:
- object
-
getSingletonInstance
-
getSingletonInstance
Get private or singleton instance of class with arguments and init values map- Parameters:
_class-_map-_params-- Returns:
- object
-
getAllWithOutRelField
-
getImpletationInstanse
- Parameters:
object-- Returns:
-