ome.services.licenses
Class LicenseSessionListener
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LicenseSessionListener
public LicenseSessionListener()
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.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.