[utilities COMMIT] /spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java

noreply at shibboleth.net noreply at shibboleth.net
Sun Nov 2 10:20:31 EST 2014


Author: rdw
Date: Sun Nov  2 10:20:30 2014
New Revision: 678

URL: http://svn.shibboleth.net/view/utilities?rev=678&view=rev
Log:
IDP-495 Add a new method to  allow a future implementation of a Service to use a strategy to get the resources

Modified:
    spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java

Modified: spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java
URL: http://svn.shibboleth.net/view/utilities/spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java?rev=678&r1=677&r2=678&view=diff
==============================================================================
--- spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java (original)
+++ spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java Sun Nov  2 10:20:30 2014
@@ -189,6 +189,16 @@
         } else {
             resourceLastModifiedTimes = null;
         }
+    }
+    
+    /** Sets the strategy by which the Service cna locate the resources it needs to know about.
+     * <br/> Not implemented
+     * @param strategy the way to get the resources.  Precise details are tbd.
+     */
+    public void setServiceConfiguationStrategy(@Nonnull final Function<?, List<Resource>> strategy) {
+        ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
+        ComponentSupport.ifDestroyedThrowDestroyedComponentException(this);
+        throw new UnsupportedOperationException("This UnsupportedOperationException method has not been implemented");
     }
 
     /**



More information about the commits mailing list