- java.lang.Object
-
- net.shibboleth.ext.spring.config.ReloadableScope
-
- All Implemented Interfaces:
Scope
public class ReloadableScope extends Object implements Scope
Custom Spring beanScopethat directs bean requests into a managedApplicationContext.- Since:
- 5.4.0
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLogger.private ReloadableService<ApplicationContext>reloadableServiceManaged context service wrapper.static StringSCOPE_RELOADABLEScope indicating reloadability.
-
Constructor Summary
Constructors Constructor Description ReloadableScope(ReloadableService<ApplicationContext> service)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(String name, ObjectFactory<?> objectFactory)StringgetConversationId()voidregisterDestructionCallback(String name, Runnable callback)Objectremove(String name)ObjectresolveContextualObject(String key)
-
-
-
Field Detail
-
SCOPE_RELOADABLE
@Nonnull @NotEmpty public static final String SCOPE_RELOADABLE
Scope indicating reloadability.- See Also:
- Constant Field Values
-
log
@Nonnull private final org.slf4j.Logger log
Logger.
-
reloadableService
@Nonnull private final ReloadableService<ApplicationContext> reloadableService
Managed context service wrapper.
-
-
Constructor Detail
-
ReloadableScope
public ReloadableScope(@Nonnull @ParameterName(name="service") ReloadableService<ApplicationContext> service)
Constructor.- Parameters:
service- instance of Spring context to wrap
-
-
Method Detail
-
get
public Object get(String name, ObjectFactory<?> objectFactory)
-
registerDestructionCallback
public void registerDestructionCallback(String name, Runnable callback)
- Specified by:
registerDestructionCallbackin interfaceScope
-
resolveContextualObject
public Object resolveContextualObject(String key)
- Specified by:
resolveContextualObjectin interfaceScope
-
getConversationId
public String getConversationId()
- Specified by:
getConversationIdin interfaceScope
-
-