Search in sources :

Example 1 with WeldSecurityServices

use of org.jboss.as.weld.services.bootstrap.WeldSecurityServices in project wildfly by wildfly.

the class SecurityBootstrapDependencyInstaller method install.

@Override
public ServiceName install(ServiceTarget serviceTarget, DeploymentUnit deploymentUnit, boolean jtsEnabled) {
    final WeldSecurityServices service = new WeldSecurityServices();
    final ServiceName serviceName = deploymentUnit.getServiceName().append(WeldSecurityServices.SERVICE_NAME);
    serviceTarget.addService(serviceName, service).addDependency(ServiceBuilder.DependencyType.OPTIONAL, SimpleSecurityManagerService.SERVICE_NAME, SimpleSecurityManager.class, service.getSecurityManagerValue()).install();
    return serviceName;
}
Also used : ServiceName(org.jboss.msc.service.ServiceName) WeldSecurityServices(org.jboss.as.weld.services.bootstrap.WeldSecurityServices) SimpleSecurityManager(org.jboss.as.security.service.SimpleSecurityManager)

Aggregations

SimpleSecurityManager (org.jboss.as.security.service.SimpleSecurityManager)1 WeldSecurityServices (org.jboss.as.weld.services.bootstrap.WeldSecurityServices)1 ServiceName (org.jboss.msc.service.ServiceName)1