use of org.jboss.as.controller.capability.CapabilityServiceSupport in project keycloak by keycloak.
the class KeycloakServerDeploymentProcessor method addInfinispanCaches.
private void addInfinispanCaches(DeploymentPhaseContext context) {
ServiceTarget st = context.getServiceTarget();
CapabilityServiceSupport support = context.getDeploymentUnit().getAttachment(Attachments.CAPABILITY_SERVICE_SUPPORT);
for (String c : CACHES) {
ServiceName sn = support.getCapabilityServiceName("org.wildfly.clustering.infinispan.cache", "keycloak", c);
st.addDependency(sn);
}
}
Aggregations