public class ChainingClassExternalizerFactory extends Object implements ClassExternalizerFactory
Constructor and Description |
---|
ChainingClassExternalizerFactory(ClassExternalizerFactory[] factories)
Construct a new instance.
|
ChainingClassExternalizerFactory(Collection<ClassExternalizerFactory> factories)
Construct a new instance.
|
ChainingClassExternalizerFactory(Iterable<ClassExternalizerFactory> factories)
Construct a new instance.
|
ChainingClassExternalizerFactory(Iterator<ClassExternalizerFactory> factories)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Externalizer |
getExternalizer(Class<?> type)
Look up a custom externalizer for a given object class.
|
public ChainingClassExternalizerFactory(Collection<ClassExternalizerFactory> factories)
factories
- a collection of factories to usepublic ChainingClassExternalizerFactory(Iterable<ClassExternalizerFactory> factories)
factories
- a collection of factories to usepublic ChainingClassExternalizerFactory(Iterator<ClassExternalizerFactory> factories)
factories
- a sequence of factories to usepublic ChainingClassExternalizerFactory(ClassExternalizerFactory[] factories)
factories
- an array of factories to usepublic Externalizer getExternalizer(Class<?> type)
null
. This implementation tries each nested externalizer factory in order until a match is found.getExternalizer
in interface ClassExternalizerFactory
type
- the type to be externalizednull
if there is noneCopyright © 2017 JBoss by Red Hat. All rights reserved.