Class DOMDocumentFactoryBean
java.lang.Object
net.shibboleth.shared.spring.factory.DOMDocumentFactoryBean
- All Implemented Interfaces:
FactoryBean<Document>
Spring bean factory for producing a
Document from a resource.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DocumentResultingDocument.private ParserPoolParser pool to use when parsing the document.private ResourceResource to load the document from.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>booleanvoidsetParserPool(ParserPool pool) Sets the parser pool to be used to parse the file.voidsetResource(Resource domResource) Sets the resource containing the document to be parsed.
-
Field Details
-
resource
Resource to load the document from. -
parserPool
Parser pool to use when parsing the document. -
document
ResultingDocument.
-
-
Constructor Details
-
DOMDocumentFactoryBean
public DOMDocumentFactoryBean()
-
-
Method Details
-
setResource
Sets the resource containing the document to be parsed.- Parameters:
domResource- resource, never null
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<Document>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<Document>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceFactoryBean<Document>
-