public class DOMDocumentFactoryBean extends Object implements FactoryBean<Document>
Document from a resource.| Modifier and Type | Field and Description |
|---|---|
private Document |
document
Resulting
Document. |
private net.shibboleth.utilities.java.support.xml.ParserPool |
parserPool
Parser pool to use when parsing the document.
|
private Resource |
resource
Resource to load the document from.
|
| Constructor and Description |
|---|
DOMDocumentFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
Document |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setParserPool(net.shibboleth.utilities.java.support.xml.ParserPool pool)
Sets the parser pool to be used to parse the file.
|
void |
setResource(Resource domResource)
Sets the resource containing the document to be parsed.
|
@Nullable private net.shibboleth.utilities.java.support.xml.ParserPool parserPool
public void setResource(@Nonnull Resource domResource)
domResource - resource, never nullpublic void setParserPool(@Nonnull net.shibboleth.utilities.java.support.xml.ParserPool pool)
pool - parser pool, never null.@Nonnull public Document getObject() throws Exception
getObject in interface FactoryBean<Document>Exception@Nonnull public Class<?> getObjectType()
getObjectType in interface FactoryBean<Document>public boolean isSingleton()
isSingleton in interface FactoryBean<Document>Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.