use of org.wildfly.security.http.util.sso.SingleSignOnManager 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);
}
Aggregations