org.wildfly.clustering.session.spec.SessionSpecificationProvider Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.session.spec;
import org.wildfly.clustering.session.ImmutableSession;
/**
* Provides specification facades to a session manager implementation.
* @author Paul Ferraro
* @param the specification type for a session
* @param the specification type for a deployment context
* @author Paul Ferraro
*/
public interface SessionSpecificationProvider {
/**
* Fabricates a read-only specification facade for the specified session and session manager context.
* @param session a session
* @param context the container-specific session manager context
* @return a container-specific session facade
*/
S asSession(ImmutableSession session, C context);
}