This interface encapsulates the access to the actual data store. The intention is to generate implementations for a particular bean and a property to improve the performance.
Accessor can be used as a receiver. Upon receiving an object it sets that to the field.
Accessor.FieldReflection , TransducedAccessor
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | Accessor.
A version of |
| public static class | Accessor.
|
| public static class | |
| public static class | Accessor.
A version of |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | accessWarned
Flag that will be set to true after issueing a warning about the lack of permission to access non-public fields. |
| private static final Accessor | |
| public static final Accessor | |
| private static List | |
| private static final Map | uninitializedValues
Uninitialized map keyed by their classes. |
| public final Class |
| Modifier and Type | Method and Description |
|---|---|
| public final <T> Accessor | adapt(Class<T> targetType, final Class<? extends XmlAdapter<T, ValueT>> adapter)
Wraps this into another and performs the type adaption as necessary. |
| public final <T> Accessor | |
| public abstract ValueT | |
| public static <A, B> Accessor | |
| public Object | |
| public Class | |
| public boolean | Returns: true if it is NOT builtin classto be checked clazz)Checks if it is not builtin jaxb class |
| public boolean | |
| public boolean | |
| public Accessor | Returns: At least the implementation can returnthis.The context)JAXBContextImpl that owns the whole thing.
(See RuntimeModelBuilder#context.)Returns the optimized version of the same accessor. |
| public void | receive(UnmarshallingContext.
Implements org. Called when the child loader is deactivated. |
| public abstract void | set(BeanT
must not be null. bean, ValueT the value to be set. Setting value to null means resetting
to the VM default value (even for primitive properties.) value)Sets the value of the property of the given bean object. |
| public void |
| accessWarned | back to summary |
|---|---|
| private static boolean accessWarned Flag that will be set to true after issueing a warning about the lack of permission to access non-public fields. | |
| ERROR | back to summary |
|---|---|
| private static final Accessor<BeanT, ValueT> ERROR | |
| JAXB_ELEMENT_VALUE | back to summary |
|---|---|
| public static final Accessor<JAXBElement<T>, Object> JAXB_ELEMENT_VALUE | |
| nonAbstractableClasses | back to summary |
|---|---|
| private static List<Class<T>> nonAbstractableClasses | |
| uninitializedValues | back to summary |
|---|---|
| private static final Map<Class<?>, Object> uninitializedValues Uninitialized map keyed by their classes. | |
| valueType | back to summary |
|---|---|
| public final Class<ValueT> valueType | |
| Accessor | back to summary |
|---|---|
| protected Accessor(Class<ValueT> valueType) | |
| adapt | back to summary |
|---|---|
| public final <T> Accessor Wraps this into another and performs the type adaption as necessary. | |
| adapt | back to summary |
|---|---|
public final <T> Accessor
| |
| get | back to summary |
|---|---|
| public abstract ValueT get(BeanT bean) throws AccessorException Gets the value of the property of the given bean object.
| |
| getErrorInstance | back to summary |
|---|---|
| public static <A, B> Accessor Gets the special used to recover from errors.
| |
| getUnadapted | back to summary |
|---|---|
| public Object getUnadapted(BeanT bean) throws AccessorException Sets the value without adapting the value.
This ugly entry point is only used by JAX-WS.
See | |
| getValueType | back to summary |
|---|---|
| public Class | |
| isAbstractable | back to summary |
|---|---|
| public boolean isAbstractable(Class<T> clazz) Checks if it is not builtin jaxb class
| |
| isAdapted | back to summary |
|---|---|
| public boolean isAdapted() Returns true if this accessor wraps an adapter. This method needs to be used with care, but it helps some optimization. | |
| isValueTypeAbstractable | back to summary |
|---|---|
| public boolean isValueTypeAbstractable() | |
| optimize | back to summary |
|---|---|
| public Accessor Returns the optimized version of the same accessor.
| |
| receive | back to summary |
|---|---|
| public void receive(UnmarshallingContext. Implements org. Doc from org. Called when the child loader is deactivated.
| |
| set | back to summary |
|---|---|
| public abstract void set(BeanT bean, ValueT value) throws AccessorException Sets the value of the property of the given bean object.
| |
| setUnadapted | back to summary |
|---|---|
| public void setUnadapted(BeanT bean, Object value) throws AccessorException Sets the value without adapting the value.
This ugly entry point is only used by JAX-WS.
See
| |
Accessor that uses Java reflection to access a field.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueT | get(BeanT bean)
Implements abstract org. Gets the value of the property of the given bean object. |
| public Accessor | optimize(JAXBContextImpl context)
Overrides org. Returns the optimized version of the same accessor. |
| public void | set(BeanT bean, ValueT value)
Implements abstract org. Sets the value of the property of the given bean object. |
| f | back to summary |
|---|---|
| public final Field f | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| FieldReflection | back to summary |
|---|---|
| public FieldReflection(Field f) | |
| FieldReflection | back to summary |
|---|---|
public FieldReflection(Field f, boolean supressAccessorWarnings)
| |
| get | back to summary |
|---|---|
| public ValueT get(BeanT bean) Implements abstract org. Doc from org. Gets the value of the property of the given bean object.
| |
| optimize | back to summary |
|---|---|
| public Accessor Overrides org. Doc from org. Returns the optimized version of the same accessor.
| |
| set | back to summary |
|---|---|
| public void set(BeanT bean, ValueT value) Implements abstract org. Doc from org. Sets the value of the property of the given bean object.
| |
GetterSetterReflection that doesn't have any setter.
This provides a user-friendly error message.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | set(BeanT bean, ValueT value)
Overrides org. Sets the value of the property of the given bean object. |
| GetterOnlyReflection | back to summary |
|---|---|
| public GetterOnlyReflection(Method getter) | |
| set | back to summary |
|---|---|
| public void set(BeanT bean, ValueT value) throws AccessorException Overrides org. Doc from org. Sets the value of the property of the given bean object.
| |
Accessor that uses Java reflection to access a getter and a setter.
| Modifier and Type | Field and Description |
|---|---|
| public final Method | |
| private static final Logger | |
| public final Method |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueT | get(BeanT bean)
Implements abstract org. Gets the value of the property of the given bean object. |
| private AccessorException | |
| private void | |
| public Accessor | optimize(JAXBContextImpl context)
Overrides org. Returns the optimized version of the same accessor. |
| public void | set(BeanT bean, ValueT value)
Implements abstract org. Sets the value of the property of the given bean object. |
| getter | back to summary |
|---|---|
| public final Method getter | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| setter | back to summary |
|---|---|
| public final Method setter | |
| GetterSetterReflection | back to summary |
|---|---|
public GetterSetterReflection(Method getter, Method setter)
| |
| get | back to summary |
|---|---|
| public ValueT get(BeanT bean) throws AccessorException Implements abstract org. Doc from org. Gets the value of the property of the given bean object.
| |
| handleInvocationTargetException | back to summary |
|---|---|
| private AccessorException handleInvocationTargetException(InvocationTargetException e) | |
| makeAccessible | back to summary |
|---|---|
| private void makeAccessible(Method m) | |
| optimize | back to summary |
|---|---|
| public Accessor Overrides org. Doc from org. Returns the optimized version of the same accessor.
| |
| set | back to summary |
|---|---|
| public void set(BeanT bean, ValueT value) throws AccessorException Implements abstract org. Doc from org. Sets the value of the property of the given bean object.
| |
Field. Used to handle a static field.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Accessor | optimize(JAXBContextImpl context)
Overrides org. Returns the optimized version of the same accessor. |
| public void | set(BeanT bean, ValueT value)
Overrides org. Sets the value of the property of the given bean object. |
| ReadOnlyFieldReflection | back to summary |
|---|---|
| public ReadOnlyFieldReflection(Field f, boolean supressAccessorWarnings) | |
| ReadOnlyFieldReflection | back to summary |
|---|---|
| public ReadOnlyFieldReflection(Field f) | |
| optimize | back to summary |
|---|---|
| public Accessor Overrides org. Doc from org. Returns the optimized version of the same accessor.
| |
| set | back to summary |
|---|---|
| public void set(BeanT bean, ValueT value) Overrides org. Doc from org. Sets the value of the property of the given bean object.
| |
GetterSetterReflection thaat doesn't have any getter.
This provides a user-friendly error message.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ValueT | get(BeanT bean)
Overrides org. Gets the value of the property of the given bean object. |
| SetterOnlyReflection | back to summary |
|---|---|
| public SetterOnlyReflection(Method setter) | |
| get | back to summary |
|---|---|
| public ValueT get(BeanT bean) throws AccessorException Overrides org. Doc from org. Gets the value of the property of the given bean object.
| |