public class ChainingObjectResolver extends Object implements ObjectResolver
Constructor and Description |
---|
ChainingObjectResolver(Collection<ObjectResolver> resolvers)
Construct a new instance.
|
ChainingObjectResolver(Iterable<ObjectResolver> resolvers)
Construct a new instance.
|
ChainingObjectResolver(Iterator<ObjectResolver> resolvers)
Construct a new instance.
|
ChainingObjectResolver(ObjectResolver[] resolvers)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
readResolve(Object replacement)
Get the original object for a replacement object read from a stream.
|
Object |
writeReplace(Object original)
Get a replacement for an object being written to a stream.
|
public ChainingObjectResolver(ObjectResolver[] resolvers)
resolvers
- the resolvers to usepublic ChainingObjectResolver(Iterator<ObjectResolver> resolvers)
resolvers
- the resolvers to usepublic ChainingObjectResolver(Iterable<ObjectResolver> resolvers)
resolvers
- the resolvers to usepublic ChainingObjectResolver(Collection<ObjectResolver> resolvers)
resolvers
- the resolvers to usepublic Object readResolve(Object replacement)
readResolve
in interface ObjectResolver
replacement
- the replacement objectpublic Object writeReplace(Object original)
writeReplace
in interface ObjectResolver
original
- the original objectCopyright © 2019 JBoss by Red Hat. All rights reserved.