ome.services
Class AbstractStatefulBean

java.lang.Object
  extended by ome.services.AbstractStatefulBean
All Implemented Interfaces:
Serializable, ServiceInterface, StatefulServiceInterface, SelfConfigurableService
Direct Known Subclasses:
JobBean, RawFileBean, RawPixelsBean, SearchBean

public abstract class AbstractStatefulBean
extends Object
implements SelfConfigurableService, StatefulServiceInterface, Serializable

Base bean implementation for stateful services. Particularly useful is the implementation of

Since:
3.0-Beta2
Author:
Josh Moore, josh at glencoesoftware.com
See Also:
Serialized Form

Field Summary
protected  LocalQuery iQuery
           
protected  SecuritySystem sec
           
 
Constructor Summary
AbstractStatefulBean()
           
 
Method Summary
protected  BeanHelper getBeanHelper()
           
 EventContext getCurrentEventContext()
          Returns the current EventContext for this instance.
 void selfConfigure()
           
 void setQueryService(LocalQuery iQuery)
          Query service Bean injector.
 void setSecuritySystem(SecuritySystem secSys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ome.system.SelfConfigurableService
getServiceInterface
 
Methods inherited from interface ome.api.StatefulServiceInterface
activate, close, passivate
 

Field Detail

iQuery

protected transient LocalQuery iQuery

sec

protected transient SecuritySystem sec
Constructor Detail

AbstractStatefulBean

public AbstractStatefulBean()
Method Detail

setQueryService

public final void setQueryService(LocalQuery iQuery)
Query service Bean injector.

Parameters:
iQuery - an IQuery service.

setSecuritySystem

public final void setSecuritySystem(SecuritySystem secSys)

selfConfigure

public void selfConfigure()
Specified by:
selfConfigure in interface SelfConfigurableService

getBeanHelper

protected BeanHelper getBeanHelper()

getCurrentEventContext

public final EventContext getCurrentEventContext()
Description copied from interface: StatefulServiceInterface
Returns the current EventContext for this instance. This is useful for later identifying changes made by this Event.

Specified by:
getCurrentEventContext in interface StatefulServiceInterface


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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