Search in sources :

Example 1 with CascadeRemovalLifecycleListener

use of org.wildfly.clustering.service.CascadeRemovalLifecycleListener in project wildfly by wildfly.

the class DistributableSingleSignOnManagerServiceConfigurator method build.

@Override
public ServiceBuilder<?> build(ServiceTarget target) {
    ServiceName name = this.getServiceName();
    ServiceController<?> installerController = this.provider.register(target.addService(name.append("installer"))).setInstance(new ChildTargetService(this.installer)).install();
    ServiceBuilder<?> builder = target.addService(name).addListener(new CascadeRemovalLifecycleListener(installerController));
    Consumer<SingleSignOnManager> manager = this.manager.register(builder).provides(name);
    Service service = new FunctionalService<>(manager, this, this.manager);
    return builder.setInstance(service);
}
Also used : FunctionalService(org.wildfly.clustering.service.FunctionalService) ServiceName(org.jboss.msc.service.ServiceName) ChildTargetService(org.wildfly.clustering.service.ChildTargetService) SingleSignOnManager(org.wildfly.security.http.util.sso.SingleSignOnManager) FunctionalService(org.wildfly.clustering.service.FunctionalService) Service(org.jboss.msc.Service) ChildTargetService(org.wildfly.clustering.service.ChildTargetService) CascadeRemovalLifecycleListener(org.wildfly.clustering.service.CascadeRemovalLifecycleListener)

Aggregations

Service (org.jboss.msc.Service)1 ServiceName (org.jboss.msc.service.ServiceName)1 CascadeRemovalLifecycleListener (org.wildfly.clustering.service.CascadeRemovalLifecycleListener)1 ChildTargetService (org.wildfly.clustering.service.ChildTargetService)1 FunctionalService (org.wildfly.clustering.service.FunctionalService)1 SingleSignOnManager (org.wildfly.security.http.util.sso.SingleSignOnManager)1