public class AccessorFactoryImpl extends Object implements InternalAccessorFactory
Modifier and Type | Method and Description |
---|---|
Accessor |
createFieldAccessor(Class bean,
Field field,
boolean readOnly)
Access a field of the class.
|
Accessor |
createFieldAccessor(Class bean,
Field field,
boolean readOnly,
boolean supressWarning)
Access a field of the class.
|
Accessor |
createPropertyAccessor(Class bean,
Method getter,
Method setter)
Access a property of the class.
|
static AccessorFactoryImpl |
getInstance() |
public static AccessorFactoryImpl getInstance()
public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly)
createFieldAccessor
in interface AccessorFactory
bean
- the class to be processed.field
- the field within the class to be accessed.readOnly
- the isStatic value of the field's modifier.public Accessor createFieldAccessor(Class bean, Field field, boolean readOnly, boolean supressWarning)
createFieldAccessor
in interface InternalAccessorFactory
bean
- the class to be processed.field
- the field within the class to be accessed.readOnly
- the isStatic value of the field's modifier.supressWarning
- supress security warning about accessing fields through reflectionpublic Accessor createPropertyAccessor(Class bean, Method getter, Method setter)
createPropertyAccessor
in interface AccessorFactory
bean
- the class to be processedgetter
- the getter method to be accessed. The value can be null.setter
- the setter method to be accessed. The value can be null.Copyright © 2020 JBoss by Red Hat. All rights reserved.