Package org.simpleframework.xml.core
Class ExtractorFactory.ExtractorBuilder
- java.lang.Object
-
- org.simpleframework.xml.core.ExtractorFactory.ExtractorBuilder
-
- Enclosing class:
- ExtractorFactory
private static class ExtractorFactory.ExtractorBuilder extends java.lang.Object
TheExtractorBuilder
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.
-
-
Constructor Summary
Constructors Constructor Description ExtractorBuilder(java.lang.Class label, java.lang.Class type)
Constructor for theExtractorBuilder
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.reflect.Constructor
getConstructor()
Returns aConstructor
that can be used to create an extractor based on a known constructor signature.
-
-
-
Constructor Detail
-
ExtractorBuilder
public ExtractorBuilder(java.lang.Class label, java.lang.Class type)
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 Detail
-
getConstructor
private java.lang.reflect.Constructor getConstructor() throws java.lang.Exception
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:
java.lang.Exception
-
-