[java-plugin-shibd] branch main updated: Remove class migrated back into shared.

Codeberg noreply at shibboleth.net
Tue Nov 17 15:49:00 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-plugin-shibd.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd/commit/045f2ff3e878935a669b1c87fb31dfe39a31ef71

The following commit(s) were added to refs/heads/main by this push:
     new 045f2ff  Remove class migrated back into shared.
045f2ff is described below

commit 045f2ff3e878935a669b1c87fb31dfe39a31ef71
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Nov 17 10:48:32 2026 -0500

    Remove class migrated back into shared.
---
 .../impl/SupplierBackedReloadableService.java      | 105 ---------------------
 1 file changed, 105 deletions(-)

diff --git a/sp-server-impl/src/main/java/net/shibboleth/sp/service/impl/SupplierBackedReloadableService.java b/sp-server-impl/src/main/java/net/shibboleth/sp/service/impl/SupplierBackedReloadableService.java
deleted file mode 100644
index 3622d28..0000000
--- a/sp-server-impl/src/main/java/net/shibboleth/sp/service/impl/SupplierBackedReloadableService.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package net.shibboleth.sp.service.impl;
-
-import java.time.Instant;
-import java.util.function.Supplier;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-
-import net.shibboleth.shared.component.AbstractInitializableComponent;
-import net.shibboleth.shared.logic.Constraint;
-import net.shibboleth.shared.service.ReloadableService;
-import net.shibboleth.shared.service.ServiceException;
-import net.shibboleth.shared.service.ServiceableComponent;
-
-/**
- * A "null" implementation of {@link ReloadableService} that obtains an instance of an
- * object via a strategy and exposes it as though it were a component wrapped
- * by a service by nulling the relevant methods and interfaces.
- * 
- * @param <T> component type 
- */
-public class SupplierBackedReloadableService<T> extends AbstractInitializableComponent implements ReloadableService<T> {
-
-    /**
-     * The supplier of the component to expose.
-     */
-    @Nonnull private Supplier<T> componentSource;
-    
-    /**
-     * Constructor.
-     *
-     * @param supplier source of component called when the component is requested
-     */
-    public SupplierBackedReloadableService(@Nonnull final Supplier<T> supplier) {
-        componentSource = Constraint.isNotNull(supplier, "Supplier cannot be null");
-    }
-    
-    /** {@inheritDoc} */
-    @Nullable public Instant getLastSuccessfulReloadInstant() {
-        return null;
-    }
-
-    /** {@inheritDoc} */
-    @Nullable public Instant getLastReloadAttemptInstant() {
-        return null;
-    }
-
-    /** {@inheritDoc} */
-    @Nullable public Throwable getReloadFailureCause() {
-        return null;
-    }
-
-    /** {@inheritDoc} */
-    public void reload() {
-    }
-
-    /** {@inheritDoc} */
-    @Nonnull public ServiceableComponent<T> getServiceableComponent() throws ServiceException {
-        final T component = componentSource.get();
-        if (component != null) {
-            return new ServiceableWrapper<>(component);
-        }
-        throw new ServiceException();
-    }
-
-    /**
-     * Dummy wrapper.
-     *
-     * @param <U> component type
-     */
-    private class ServiceableWrapper<U> implements ServiceableComponent<U> {
-
-        /** Wrapped component. */
-        @Nonnull private U component;
-        
-        public ServiceableWrapper(@Nonnull final U comp) {
-            component = Constraint.isNotNull(comp, "Componnent cannot be null");
-        }
-        
-        /** {@inheritDoc} */
-        @Nonnull public U getComponent() {
-            return component;
-        }
-
-        /** {@inheritDoc} */
-        public void close() {
-        }
-        
-    }
-    
-}
\ No newline at end of file

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


More information about the commits mailing list