Package net.shibboleth.idp.spring
Class OpenSAMLConfigBean
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.idp.spring.OpenSAMLConfigBean
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
A simple bean that may be used with Spring to initialize the OpenSAML library
with injected instances of some critical objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ParserPool
Optional decryptionParserPool
to configure.private final org.slf4j.Logger
Class logger.private com.codahale.metrics.MetricRegistry
OptionalMetricRegistry
to configure.private ParserPool
OptionalParserPool
to configure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Get the global decryptionParserPool
to configure.com.codahale.metrics.MetricRegistry
Get the globalMetricRegistry
to configure.Get the globalParserPool
to configure.void
setDecryptionParserPool
(ParserPool newParserPool) Set the global decryptionParserPool
to configure.void
setMetricRegistry
(com.codahale.metrics.MetricRegistry registry) Set the globalMetricRegistry
to configure.void
setParserPool
(ParserPool newParserPool) Set the globalParserPool
to configure.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
parserPool
OptionalParserPool
to configure. -
decryptionParserPool
Optional decryptionParserPool
to configure. -
metricRegistry
@Nullable private com.codahale.metrics.MetricRegistry metricRegistryOptionalMetricRegistry
to configure.
-
-
Constructor Details
-
OpenSAMLConfigBean
public OpenSAMLConfigBean()
-
-
Method Details
-
getParserPool
Get the globalParserPool
to configure.- Returns:
- the parser pool
-
setParserPool
Set the globalParserPool
to configure.- Parameters:
newParserPool
- the parser pool to set
-
getDecryptionParserPool
Get the global decryptionParserPool
to configure.- Returns:
- the decryption parser pool
-
setDecryptionParserPool
Set the global decryptionParserPool
to configure.- Parameters:
newParserPool
- the decryption parser pool to set
-
getMetricRegistry
@Nullable public com.codahale.metrics.MetricRegistry getMetricRegistry()Get the globalMetricRegistry
to configure.- Returns:
- the metric registry to use
- Since:
- 3.3.0
-
setMetricRegistry
public void setMetricRegistry(@Nullable com.codahale.metrics.MetricRegistry registry) Set the globalMetricRegistry
to configure.- Parameters:
registry
- the metric registry to use- Since:
- 3.3.0
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-