Java Code Examples for org.jboss.msc.service.ServiceName#of()
The following examples show how to use
org.jboss.msc.service.ServiceName#of() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CamelEndpointDeploymentSchedulerService.java From wildfly-camel with Apache License 2.0 | 5 votes |
public static ServiceName deploymentSchedulerServiceName(ClassLoader deploymentClassLoader) { if (deploymentClassLoader == null) { deploymentClassLoader = SecurityActions.getContextClassLoader(); } if (deploymentClassLoader instanceof ModuleClassLoader) { ModuleClassLoader moduleClassLoader = (ModuleClassLoader) deploymentClassLoader; final String clName = moduleClassLoader.getName(); if (clName.startsWith(DEPLOYMENT_CL_NAME_PREFIX)) { if (clName.endsWith(WAR_SUFFIX)) { final String deploymentName = clName.substring(DEPLOYMENT_CL_NAME_PREFIX.length()); final int earInfixPos = deploymentName.indexOf(EAR_INFIX); if (earInfixPos >= 0) { final String earName = deploymentName.substring(0, earInfixPos + EAR_INFIX.length() - 1); final String warName = deploymentName.substring(earInfixPos + EAR_INFIX.length()); return ServiceName.of("jboss", "deployment", "subunit", earName, warName, SERVICE_NAME); } else { return ServiceName.of("jboss", "deployment", "unit", deploymentName, SERVICE_NAME); } } else { throw new IllegalStateException(String.format("Expected a %s name ending with '%s'; found %s", ModuleClassLoader.class.getName(), WAR_SUFFIX, clName)); } } else { throw new IllegalStateException(String.format("Expected a %s name starting with '%s'; found %s", ModuleClassLoader.class.getName(), DEPLOYMENT_CL_NAME_PREFIX, clName)); } } else { throw new IllegalStateException( String.format("Expected a %s; found %s", ModuleClassLoader.class.getName(), deploymentClassLoader)); } }
Example 2
Source File: TopologyProxyService.java From thorntail with Apache License 2.0 | 4 votes |
public ServiceName mscServiceNameForServiceProxy(String serviceName) { return ServiceName.of("org", "wildfly", "extension", "undertow", "handler", TopologyWebAppFraction.proxyHandlerName(serviceName)); }
Example 3
Source File: GmlcService.java From gmlc with GNU Affero General Public License v3.0 | 4 votes |
public static ServiceName getServiceName() { return ServiceName.of("restcomm", "gmlc-service"); }
Example 4
Source File: InterdependentDeploymentTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
public ServiceActivatorDeploymentB() { super(ServiceName.of(ServiceActivatorDeployment.class.getSimpleName(), "b"), "b.properties"); }
Example 5
Source File: InterdependentDeploymentTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
public ServiceActivatorDeploymentC() { super(ServiceName.of(ServiceActivatorDeployment.class.getSimpleName(), "c"), "c.properties"); }
Example 6
Source File: InterdependentDeploymentTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
public ServiceActivatorDeploymentD() { super(ServiceName.of(ServiceActivatorDeployment.class.getSimpleName(), "d"), "d.properties"); }
Example 7
Source File: InterdependentDeploymentTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
public ServiceActivatorDeploymentE() { super(ServiceName.of(ServiceActivatorDeployment.class.getSimpleName(), "e"), "e.properties"); }
Example 8
Source File: InterdependentDeploymentTestCase.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
public ServiceActivatorDeploymentF() { super(ServiceName.of(ServiceActivatorDeployment.class.getSimpleName(), "f"), "f.properties"); }
Example 9
Source File: ServiceActivatorBaseDeployment.java From wildfly-core with GNU Lesser General Public License v2.1 | 4 votes |
protected ServiceActivatorBaseDeployment(String qualifier) { serviceName = ServiceName.of("test", "deployment", qualifier); propertyName = "test.deployment.prop." + qualifier; overridePropertyName = "test.overlay.prop." + qualifier; this.qualifier = qualifier; }
Example 10
Source File: KeycloakClusteredSsoDeploymentProcessor.java From keycloak with Apache License 2.0 | 4 votes |
private void addCacheDependency(DeploymentPhaseContext context, DeploymentUnit deploymentUnit, String cacheContainer, String cacheName) { ServiceName jbossAsCacheContainerService = ServiceName.of("jboss", "infinispan", cacheContainer); ServiceTarget st = context.getServiceTarget(); st.addDependency(jbossAsCacheContainerService.append(cacheName)); }