Package org.eclipse.sisu.bean
Class BeanPropertySetter<T>
java.lang.Object
org.eclipse.sisu.bean.BeanPropertySetter<T>
- All Implemented Interfaces:
PrivilegedAction<Void>,BeanProperty<T>
BeanProperty backed by a single-parameter setter Method.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<A extends Annotation>
AgetAnnotation(Class<A> annotationType) Returns the property annotation with the specified type.getName()Returns the normalized property name excluding the namespace; for example"address".com.google.inject.TypeLiteral<T> getType()Returns the reified generic type of the property; for exampleTypeLiteral<List<String>>.inthashCode()run()<B> voidSets the property in the given bean to the given value.toString()
-
Field Details
-
method
-
-
Constructor Details
-
BeanPropertySetter
BeanPropertySetter(Method method)
-
-
Method Details
-
getAnnotation
Description copied from interface:BeanPropertyReturns the property annotation with the specified type.- Specified by:
getAnnotationin interfaceBeanProperty<T>- Parameters:
annotationType- The annotation type- Returns:
- Property annotation if it exists; otherwise
null
-
getType
Description copied from interface:BeanPropertyReturns the reified generic type of the property; for exampleTypeLiteral<List<String>>.- Specified by:
getTypein interfaceBeanProperty<T>- Returns:
- Reified generic type
-
getName
Description copied from interface:BeanPropertyReturns the normalized property name excluding the namespace; for example"address".- Specified by:
getNamein interfaceBeanProperty<T>- Returns:
- Normalized property name
-
set
Description copied from interface:BeanPropertySets the property in the given bean to the given value.- Specified by:
setin interfaceBeanProperty<T>- Parameters:
bean- The bean to updatevalue- The value to set
-
hashCode
public int hashCode() -
equals
-
toString
-
run
- Specified by:
runin interfacePrivilegedAction<T>
-