- Type Parameters:
T- The class type that this transform applies to.
F- The transformed class type.
Method SummaryModifier and TypeMethodDescriptionGiven the specified surrogate class, return the list of object swaps.If this transform is to be used to serialize non-serializable objects, it must implement this method.If this transform is to be used to reconstitute objects that aren't true Java beans, it must implement this method.
Methods inherited from class org.apache.juneau.swap.ObjectSwap
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplate
forClass- The normal class.
constructor- The constructor on the surrogate class that takes the normal class as a parameter.
unswapMethod- The static method that converts surrogate objects into normal objects.
findObjectSwapsGiven the specified surrogate class, return the list of object swaps.
A transform is returned for each public 1-arg constructor found. Returns an empty list if no public 1-arg constructors are found.
c- The surrogate class.
bc- The bean context to use for looking up annotations.
- The list of object swaps that apply to this class.
swapDescription copied from class:
ObjectSwapIf this transform is to be used to serialize non-serializable objects, it must implement this method.
The object must be converted into one of the following serializable types:
unswapDescription copied from class:
ObjectSwapIf this transform is to be used to reconstitute objects that aren't true Java beans, it must implement this method.
session- The bean session to use to get the class meta. This is always going to be the same bean context that created this swap.
f- The transformed object.
hint- If possible, the parser will try to tell you the object type being created. For example, on a serialized date, this may tell you that the object being created must be of type
This may be
nullif the parser cannot make this determination.
- The narrowed object.