org.jboss.as.clustering.infinispan.subsystem.LocalCacheResourceDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-infinispan-extension Show documentation
Show all versions of wildfly-clustering-infinispan-extension Show documentation
Installs an extension that provides the infinispan subsystem.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.jboss.as.clustering.infinispan.subsystem;
import java.util.function.UnaryOperator;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.CacheMode;
import org.jboss.as.controller.PathElement;
import org.wildfly.subsystem.service.capture.FunctionExecutorRegistry;
/**
* Resource description for the addressable resource /subsystem=infinispan/cache-container=X/local-cache=*
*
* @author Richard Achmatowicz (c) 2011 Red Hat Inc.
*/
public class LocalCacheResourceDefinition extends CacheResourceDefinition {
static final PathElement WILDCARD_PATH = pathElement(PathElement.WILDCARD_VALUE);
static PathElement pathElement(String name) {
return PathElement.pathElement("local-cache", name);
}
LocalCacheResourceDefinition(FunctionExecutorRegistry> executors) {
super(WILDCARD_PATH, UnaryOperator.identity(), CacheMode.LOCAL, executors);
}
}