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.resource.Resource |
documentResource
Resource to load the document from.
|
private net.shibboleth.utilities.java.support.xml.BasicParserPool |
parserPool
Parser pool to use when parsing the document.
|
| Constructor and Description |
|---|
DomDocumentFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
Document |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setDocumentResource(net.shibboleth.utilities.java.support.resource.Resource resource)
Sets the resource containing the document to be parsed.
|
void |
setParserPool(net.shibboleth.utilities.java.support.xml.BasicParserPool pool)
Sets the parser pool to be used to parse the file.
|
private net.shibboleth.utilities.java.support.resource.Resource documentResource
private net.shibboleth.utilities.java.support.xml.BasicParserPool parserPool
public void setDocumentResource(@Nonnull net.shibboleth.utilities.java.support.resource.Resource resource)
resource - resource, never nullpublic void setParserPool(@Nonnull net.shibboleth.utilities.java.support.xml.BasicParserPool 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-2013. All Rights Reserved.