public final class SPSessionSerializerRegistry extends AbstractInitializableComponent
SPSession class and a corresponding StorageSerializer
for that type.| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Map<Class<? extends SPSession>,StorageSerializer<? extends SPSession>> |
registry
Storage for the registry mappings.
|
| Constructor and Description |
|---|
SPSessionSerializerRegistry()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StorageSerializer<? extends SPSession> |
lookup(Class<? extends SPSession> type)
Get a registered
StorageSerializer for a given SPSession type, if any. |
void |
setMappings(Map<Class<? extends SPSession>,StorageSerializer<? extends SPSession>> map)
Set the mappings to use.
|
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private Map<Class<? extends SPSession>,StorageSerializer<? extends SPSession>> registry
public void setMappings(@Nonnull@NonnullElements Map<Class<? extends SPSession>,StorageSerializer<? extends SPSession>> map)
map - map to populate registry with@Nullable public StorageSerializer<? extends SPSession> lookup(@Nonnull Class<? extends SPSession> type)
StorageSerializer for a given SPSession type, if any.type - a type of SPSessionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.