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;
}
Aggregations