Package org.simpleframework.xml.core
Class ExtractorFactory.ExtractorBuilder
java.lang.Object
org.simpleframework.xml.core.ExtractorFactory.ExtractorBuilder
- Enclosing class:
ExtractorFactory
The
ExtractorBuilder
object is used to instantiate
an extractor based an a particular union annotation. Each
builder has a known constructor signature which can be used to
reflectively instantiate the builder instance.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExtractorBuilder
(Class label, Class type) Constructor for theExtractorBuilder
object. -
Method Summary
Modifier and TypeMethodDescriptionprivate Constructor
Returns aConstructor
that can be used to create an extractor based on a known constructor signature.
-
Field Details
-
label
This is the union annotation to build the extractor for. -
type
This is the actual extractor that is to be instantianted.
-
-
Constructor Details
-
ExtractorBuilder
Constructor for theExtractorBuilder
object. This requires the union annotation to instantiate the builder for. Also, the actual builder type is required.- Parameters:
label
- this is the union annotation to be usedtype
- this is the actual extractor implementation
-
-
Method Details
-
getConstructor
Returns aConstructor
that can be used to create an extractor based on a known constructor signature. The provided constructor is then used to instantiated the object.- Returns:
- this returns the constructor for the extractor
- Throws:
Exception
-