[java-shib-shared] branch main updated: JSSH-46 - IdentifiedComponentManager should support component interfaces

Scott Cantor cantor.2 at osu.edu
Wed Feb 12 19:32:40 UTC 2025


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-shib-shared.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=dc9ca505e8281c3c390723de5c93a1b1697770ee

The following commit(s) were added to refs/heads/main by this push:
     new dc9ca505 JSSH-46 - IdentifiedComponentManager should support component interfaces
dc9ca505 is described below

commit dc9ca505e8281c3c390723de5c93a1b1697770ee
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Feb 12 14:32:37 2025 -0500

    JSSH-46 - IdentifiedComponentManager should support component interfaces
    
    https://shibboleth.atlassian.net/browse/JSSH-46
---
 .../shibboleth/shared/spring/config/IdentifiedComponentManager.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/shib-spring/src/main/java/net/shibboleth/shared/spring/config/IdentifiedComponentManager.java b/shib-spring/src/main/java/net/shibboleth/shared/spring/config/IdentifiedComponentManager.java
index ad97dd20..2363e5c1 100644
--- a/shib-spring/src/main/java/net/shibboleth/shared/spring/config/IdentifiedComponentManager.java
+++ b/shib-spring/src/main/java/net/shibboleth/shared/spring/config/IdentifiedComponentManager.java
@@ -24,6 +24,7 @@ import javax.annotation.Nullable;
 import org.slf4j.Logger;
 
 import net.shibboleth.shared.collection.CollectionSupport;
+import net.shibboleth.shared.component.AbstractInitializableComponent;
 import net.shibboleth.shared.component.IdentifiedComponent;
 import net.shibboleth.shared.primitive.LoggerFactory;
 
@@ -41,7 +42,7 @@ import net.shibboleth.shared.primitive.LoggerFactory;
  * 
  * @since 6.1.0
  */
-public class IdentifiedComponentManager<T extends IdentifiedComponent> {
+public class IdentifiedComponentManager<T extends IdentifiedComponent> extends AbstractInitializableComponent {
 
     /** Class logger. */
     @Nonnull private Logger log = LoggerFactory.getLogger(IdentifiedComponentManager.class);
@@ -75,6 +76,8 @@ public class IdentifiedComponentManager<T extends IdentifiedComponent> {
      * @param additionalObjects additional objects
      */
     public void setComponents(@Nullable final Collection<T> additionalObjects) {
+        checkSetterPreconditions();
+        
         if (additionalObjects != null) {
             final Collection<T> holder = new LinkedHashSet<>(additionalObjects);
             holder.addAll(

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list