|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.util.http.sec.HttpLoginServiceRegistry
public class HttpLoginServiceRegistry
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 Summary | |
---|---|
HttpLoginServiceRegistry()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpLoginServiceRegistry()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |