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>>
.int
hashCode()
run()
<B> void
Sets 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:BeanProperty
Returns the property annotation with the specified type.- Specified by:
getAnnotation
in interfaceBeanProperty<T>
- Parameters:
annotationType
- The annotation type- Returns:
- Property annotation if it exists; otherwise
null
-
getType
Description copied from interface:BeanProperty
Returns the reified generic type of the property; for exampleTypeLiteral<List<String>>
.- Specified by:
getType
in interfaceBeanProperty<T>
- Returns:
- Reified generic type
-
getName
Description copied from interface:BeanProperty
Returns the normalized property name excluding the namespace; for example"address"
.- Specified by:
getName
in interfaceBeanProperty<T>
- Returns:
- Normalized property name
-
set
Description copied from interface:BeanProperty
Sets the property in the given bean to the given value.- Specified by:
set
in interfaceBeanProperty<T>
- Parameters:
bean
- The bean to updatevalue
- The value to set
-
hashCode
public int hashCode() -
equals
-
toString
-
run
- Specified by:
run
in interfacePrivilegedAction<T>
-