ome.services.licenses
Class LicenseSessionListener

java.lang.Object
  extended by ome.services.licenses.LicenseSessionListener
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener

public class LicenseSessionListener
extends Object
implements org.springframework.context.ApplicationListener

Listens for AbstractSessionMessages sent by ome.services.blitz.fire.SesssionManagerI and ServiceFactoryI and creates licenses when necessary for the user. The listener decouples the session creation from the licensing logic. This is notably different from the process needed to acquire a license in the application server case, since there is no central session.

Since:
3.0-Beta2
Author:
Josh Moore, josh at glencoesoftware.com

Constructor Summary
LicenseSessionListener()
           
 
Method Summary
protected  void login(AbstractSessionMessage event)
           
protected  void logout()
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
 void setLicenseWiring(LicenseWiring licenseWiring)
           
 void setSecuritySystem(SecuritySystem secSys)
           
 void setService(ILicense service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseSessionListener

public LicenseSessionListener()
Method Detail

setSecuritySystem

public void setSecuritySystem(SecuritySystem secSys)

setLicenseWiring

public void setLicenseWiring(LicenseWiring licenseWiring)

setService

public void setService(ILicense service)

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

login

protected void login(AbstractSessionMessage event)

logout

protected void logout()


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.