[java-identity-provider] branch master updated: Guard setters with init check.
Scott Cantor
cantor.2 at osu.edu
Mon Aug 20 13:24:00 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=9d6844c62bb0837d0b92c3302b942c7496527bc5
The following commit(s) were added to refs/heads/master by this push:
new 9d6844c Guard setters with init check.
9d6844c is described below
commit 9d6844c62bb0837d0b92c3302b942c7496527bc5
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Aug 20 13:23:54 2018 -0400
Guard setters with init check.
---
.../idp/attribute/resolver/impl/AttributeResolverImpl.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
index 7583b4e..ab2c71f 100644
--- a/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
+++ b/idp-attribute-resolver-impl/src/main/java/net/shibboleth/idp/attribute/resolver/impl/AttributeResolverImpl.java
@@ -118,6 +118,8 @@ public class AttributeResolverImpl extends AbstractServiceableComponent<Attribut
* @param definitions attribute definitions loaded in to this resolver
*/
public void setAttributeDefinitions(@Nullable @NullableElements final Collection<AttributeDefinition> definitions) {
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
final Map<String, AttributeDefinition> checkedDefinitions;
if (definitions != null) {
checkedDefinitions = new HashMap<>(definitions.size());
@@ -151,6 +153,8 @@ public class AttributeResolverImpl extends AbstractServiceableComponent<Attribut
* @param connectors data connectors loaded in to this resolver
*/
public void setDataConnectors( @Nullable @NullableElements final Collection<DataConnector> connectors){
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
final Map<String, DataConnector> checkedConnectors;
if (connectors != null) {
checkedConnectors = new HashMap<>(connectors.size());
@@ -191,6 +195,8 @@ public class AttributeResolverImpl extends AbstractServiceableComponent<Attribut
* @param doStripNulls what to set
*/
public void setStripNulls(final Boolean doStripNulls) {
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
stripNulls = doStripNulls;
}
@@ -198,6 +204,8 @@ public class AttributeResolverImpl extends AbstractServiceableComponent<Attribut
* @param principalResolver code to resolve the principal
*/
public void setPrincipalDecoder(@Nullable final LegacyPrincipalDecoder principalResolver) {
+ ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+
principalConnector = principalResolver;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list