public class HttpLoginServiceRegistry extends Object
This class may be used as a service listener, which keeps track
of all registered HttpLoginService
instance.
This class should be registered as a blueprint bean like follows:
<bp:reference-list id="loginServiceList" availability="optional" interface="org.clazzes.util.http.sec.HttpLoginService"> <bp:reference-listener ref="loginServiceRegistry" bind-method="loginServiceBound" unbind-method="loginServiceUnbound"/> </bp:reference-list> <bp:bean id="loginServiceRegistry" class="org.clazzes.util.http.sec.HttpLoginServiceRegistry"/>
Constructor and Description |
---|
HttpLoginServiceRegistry() |
Modifier and Type | Method and Description |
---|---|
HttpLoginService |
getLoginService(String method) |
void |
loginServiceBound(HttpLoginService svc,
Map<String,String> props)
An OSGi
bind-method for a HttpLoginService. |
void |
loginServiceUnbound(HttpLoginService svc,
Map<String,String> props)
An OSGi
unbind-method for a HttpLoginService. |
public HttpLoginService getLoginService(String method)
public void loginServiceBound(HttpLoginService svc, Map<String,String> props)
bind-method
for a HttpLoginService.svc
- The service becoming available.props
- The service properties, which should contain a
login.mechanism
property.public void loginServiceUnbound(HttpLoginService svc, Map<String,String> props)
unbind-method
for a HttpLoginService.svc
- The service becoming unavailable.props
- The service properties, which should contain a
login.mechanism
property.Copyright © 2018 Clazzes.org. All rights reserved.