All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.clustering.web.session.SessionAttributeImmutability Maven / Gradle / Ivy

Go to download

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy