org.springframework.security.saml.parser
Class ParserPoolHolder
java.lang.Object
org.springframework.security.saml.parser.ParserPoolHolder
public class ParserPoolHolder
- extends Object
Class is initialized from the Spring context and allows retrieval of the ParserPool for code
not managed by Spring.
- Author:
- Vladimir Schaefer
Method Summary |
static org.opensaml.xml.parse.ParserPool |
getPool()
|
void |
setParserPool(org.opensaml.xml.parse.ParserPool pool)
Initializes the static parserPool property and makes it available for getPool calls. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserPoolHolder
public ParserPoolHolder()
setParserPool
@Autowired
public void setParserPool(org.opensaml.xml.parse.ParserPool pool)
- Initializes the static parserPool property and makes it available for getPool calls.
In case the pool was already previously initialized the last value will be overwritten.
- Parameters:
pool
- pool to initialize the static property wih
getPool
public static org.opensaml.xml.parse.ParserPool getPool()
- Returns:
- parserPool or create a default one if none was provided