Package org.hcjf.utils
Class Introspection.Setter
- java.lang.Object
-
- org.hcjf.utils.Introspection.Invoker
-
- org.hcjf.utils.Introspection.Accessor
-
- org.hcjf.utils.Introspection.Setter
-
- Enclosing class:
- Introspection
public static class Introspection.Setter extends Introspection.Accessor
Sub class of the accessor that represents only the setter accessors.
-
-
Constructor Summary
Constructors Constructor Description Setter(java.lang.Class implementationClass, java.lang.String resourceName, java.lang.reflect.Method method)
-
Method Summary
Modifier and Type Method Description java.lang.ClassgetParameterCollectionType()If the parameter type is assignable to map class or collection class then this method return the collection type of the parameter type.java.lang.ClassgetParameterKeyType()If the parameter type is assignable to map class then this method return the key type of the parameter type.java.lang.reflect.ParameterizedTypegetParameterParameterizedType()Returns the parameterized type that corresponds with the parameter type.java.lang.ClassgetParameterType()Return the parameter type of the setter method.voidset(java.lang.Object instance, java.lang.Object value)Reflection invoked by the underlying method to set the resource value.-
Methods inherited from class org.hcjf.utils.Introspection.Accessor
getResourceName
-
Methods inherited from class org.hcjf.utils.Introspection.Invoker
getAnnotation, getAnnotations, getAnnotationsMap, getImplementationClass, getMethod, invoke, isAnnotationPresent
-
-
-
-
Method Detail
-
set
public void set(java.lang.Object instance, java.lang.Object value)Reflection invoked by the underlying method to set the resource value.- Parameters:
instance- Instance to do reflection.value- Parameter value.- Throws:
java.lang.reflect.InvocationTargetException- Invocation target exception.java.lang.IllegalAccessException- Illegal access exception.
-
getParameterType
public final java.lang.Class getParameterType()
Return the parameter type of the setter method.- Returns:
- Parameter type.
-
getParameterParameterizedType
public final java.lang.reflect.ParameterizedType getParameterParameterizedType()
Returns the parameterized type that corresponds with the parameter type.- Returns:
- Parameterized parameter type.
-
getParameterKeyType
public final java.lang.Class getParameterKeyType()
If the parameter type is assignable to map class then this method return the key type of the parameter type.- Returns:
- Key type.
-
getParameterCollectionType
public final java.lang.Class getParameterCollectionType()
If the parameter type is assignable to map class or collection class then this method return the collection type of the parameter type.- Returns:
- Collection type.
-
-