ome.security.basic
Class EventListenersFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by ome.security.basic.EventListenersFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class EventListenersFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean

configuring all the possible event listeners within XML can be cumbersome.


Field Summary
protected  boolean debugAll
           
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
EventListenersFactoryBean(CurrentDetails cd, TokenHolder th, ACLVoter voter, OmeroInterceptor interceptor)
           
 
Method Summary
protected  void additions()
           
protected  Object createInstance()
          First, adds all default listeners.
 Class getObjectType()
          this FactoryBean produces a Map instance for use in LocalSessionFactoryBean.setEventListeners(Map)
 boolean isSingleton()
          being a singleton implies that this FactoryBean will only ever create one instance.
protected  void overrides()
           
 void setDebugAll(boolean debug)
          for setter injection
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugAll

protected boolean debugAll
Constructor Detail

EventListenersFactoryBean

public EventListenersFactoryBean(CurrentDetails cd,
                                 TokenHolder th,
                                 ACLVoter voter,
                                 OmeroInterceptor interceptor)
Method Detail

getObjectType

public Class getObjectType()
this FactoryBean produces a Map instance for use in LocalSessionFactoryBean.setEventListeners(Map)

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean

isSingleton

public boolean isSingleton()
being a singleton implies that this FactoryBean will only ever create one instance.

Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean
Overrides:
isSingleton in class org.springframework.beans.factory.config.AbstractFactoryBean

createInstance

protected Object createInstance()
                         throws Exception
First, adds all default listeners. These are then overwritten.

Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean
Throws:
Exception

setDebugAll

public void setDebugAll(boolean debug)
for setter injection


overrides

protected void overrides()

additions

protected void additions()


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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