Enhancer. Such a proxy is recreated while
deserializing the proxy. The converter does only work, if| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static String | |
| private static String | |
| private transient Map |
| Access | Constructor and Description |
|---|---|
| public | CGLIBEnhancedConverter(Mapper
the mapper chain instance mapper, ReflectionProvider the reflection provider reflectionProvider, ClassLoaderReference the reference to the classLoaderReference)ClassLoader of the XStream instanceConstruct a CGLIBEnhancedConverter. |
| public | CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider, ClassLoader classLoader)
Deprecated
As of 1.4.5 use
CGLIBEnhancedConverter(Mapper, ReflectionProvider, ClassLoaderReference)
|
| public | CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider)
Deprecated
As of 1.4 use
CGLIBEnhancedConverter(Mapper, ReflectionProvider, ClassLoaderReference)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Overrides com. Implements com. |
| private Object | |
| private Map | |
| private Object[] | |
| private Callback | createReverseEngineeredCallbackOfProperType(Callback callback, int index, Map<K, V> callbackIndexMap)
|
| private Callback[] | |
| protected List | |
| public void | marshal(Object
The object to be marshalled. source, HierarchicalStreamWriter A stream to write to. writer, MarshallingContext A context that allows nested objects to be processed by XStream. context)Overrides com. Implements com. |
| private void | readCallback(HierarchicalStreamReader reader, UnmarshallingContext context, List<E> callbacksToEnhance, List<E> callbacks)
|
| protected Object | |
| public Object | unmarshal(HierarchicalStreamReader
The stream to read the text from. reader, UnmarshallingContext context)Overrides com. Implements com. |
| CALLBACK_MARKER | back to summary |
|---|---|
| private static String CALLBACK_MARKER | |
| DEFAULT_NAMING_MARKER | back to summary |
|---|---|
| private static String DEFAULT_NAMING_MARKER | |
| fieldCache | back to summary |
|---|---|
| private transient Map<K, V> fieldCache | |
| CGLIBEnhancedConverter | back to summary |
|---|---|
| public CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider, ClassLoaderReference classLoaderReference) Construct a CGLIBEnhancedConverter.
| |
| CGLIBEnhancedConverter | back to summary |
|---|---|
| public CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider, ClassLoader classLoader)
Deprecated As of 1.4.5 use | |
| CGLIBEnhancedConverter | back to summary |
|---|---|
| public CGLIBEnhancedConverter(Mapper mapper, ReflectionProvider reflectionProvider)
Deprecated As of 1.4 use | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Overrides com. Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| create | back to summary |
|---|---|
| private Object create(final Enhancer enhancer, List<E> callbacks, boolean useFactory) | |
| createCallbackIndexMap | back to summary |
|---|---|
| private Map | |
| createNullArguments | back to summary |
|---|---|
| private Object[] createNullArguments(Class<T>[] parameterTypes) | |
| createReverseEngineeredCallbackOfProperType | back to summary |
|---|---|
| private Callback createReverseEngineeredCallbackOfProperType(Callback callback, int index, Map<K, V> callbackIndexMap) | |
| getCallbacks | back to summary |
|---|---|
| private Callback[] getCallbacks(Object source) | |
| hierarchyFor | back to summary |
|---|---|
| protected List Overrides com. | |
| marshal | back to summary |
|---|---|
| public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) Overrides com. Implements com. Doc from com. Convert an object to textual data.
| |
| readCallback | back to summary |
|---|---|
| private void readCallback(HierarchicalStreamReader reader, UnmarshallingContext context, List<E> callbacksToEnhance, List<E> callbacks) | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() Overrides com. | |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Overrides com. Implements com. Doc from com. Convert textual data back into an object.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| CGLIBFilteringReflectionProvider | back to summary |
|---|---|
| public CGLIBFilteringReflectionProvider(final ReflectionProvider reflectionProvider) | |
| visitSerializableFields | back to summary |
|---|---|
| public void visitSerializableFields(final Object object, final ReflectionProvider. Overrides com. Implements com. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | accept(Method
the intercepted method method)Implements net. |
| callbackIndexMap | back to summary |
|---|---|
| private final Map<K, V> callbackIndexMap | |
| ReverseEngineeredCallbackFilter | back to summary |
|---|---|
| public ReverseEngineeredCallbackFilter(Map<K, V> callbackIndexMap) | |
| accept | back to summary |
|---|---|
| public int accept(Method method) Implements net. Doc from net. Map a method to a callback.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. |
| index | back to summary |
|---|---|
| private final Integer index | |
| indexMap | back to summary |
|---|---|
| private final Map<K, V> indexMap | |
| ReverseEngineeringInvocationHandler | back to summary |
|---|---|
| public ReverseEngineeringInvocationHandler(int index, Map<K, V> indexMap) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) throws Throwable Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |