T - representation of entity data filtering requested by provider.public abstract class AbstractObjectProvider<T> extends Object implements ObjectProvider<T>, ObjectGraphTransformer<T>
object provider and object graph transformer.
Extensions of this class must provide a type of entity-filtering object (via generic type parameter) the requesting provider
(e.g. message body worker) is familiar with and an implementation of
ObjectGraphTransformer.transform(ObjectGraph) method for this type.
| Constructor and Description |
|---|
AbstractObjectProvider() |
| Modifier and Type | Method and Description |
|---|---|
T |
getFilteringObject(Type genericType,
boolean forWriter,
Annotation... annotations)
Get reader/writer entity-filtering object for given type.
|
protected Set<String> |
immutableSetOf(Set<String> set,
String item)
A helper method for a creation of an immutable set based on a provided set together with a given item.
|
protected String |
subgraphIdentifier(Class<?> parent,
String field,
Class<?> fieldClass)
Creates a string identifier of a sub-graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic final T getFilteringObject(Type genericType, boolean forWriter, Annotation... annotations)
ObjectProvidergetFilteringObject in interface ObjectProvider<T>genericType - type for which the object is requested.forWriter - flag to determine whether to create object for reading/writing purposes.annotations - entity annotations to determine the runtime scope.protected Set<String> immutableSetOf(Set<String> set, String item)
set - The set to create the immutable set from.item - The item to add to the set before it's made immutable.Copyright © 2007-2016, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.