org.clazzes.util.http.sec
Class HttpLoginServiceRegistry

java.lang.Object
  extended by org.clazzes.util.http.sec.HttpLoginServiceRegistry

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 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

HttpLoginServiceRegistry

public HttpLoginServiceRegistry()
Method Detail

getLoginService

public HttpLoginService getLoginService(String method)

loginServiceBound

public void loginServiceBound(HttpLoginService svc,
                              Map<String,String> props)
An OSGi bind-method for a HttpLoginService.

Parameters:
svc - The service becoming available.
props - The service properties, which should contain a login.mechanism property.

loginServiceUnbound

public void loginServiceUnbound(HttpLoginService svc,
                                Map<String,String> props)
An OSGi unbind-method for a HttpLoginService.

Parameters:
svc - The service becoming unavailable.
props - The service properties, which should contain a login.mechanism property.


Copyright © 2012. All Rights Reserved.