org.wildfly.clustering.web.session.SessionAttributeImmutability Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-web-spi Show documentation
Show all versions of wildfly-clustering-web-spi Show documentation
A set of SPIs for implementing a container-independent distributable HTTP session manager and single sign-on manager for use by a servlet container.
The newest version!
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.web.session;
import org.wildfly.clustering.ee.Immutability;
import org.wildfly.clustering.ee.immutable.AnnotationImmutability;
import org.wildfly.clustering.web.annotation.Immutable;
/**
* Session attribute immutability tests.
* @author Paul Ferraro
*/
public enum SessionAttributeImmutability implements Immutability {
ANNOTATION(new AnnotationImmutability(Immutable.class)),
;
private final Immutability immutability;
SessionAttributeImmutability(Immutability immutability) {
this.immutability = immutability;
}
@Override
public boolean test(Object object) {
return this.immutability.test(object);
}
}