ome.services.util
Class BeanHelper

java.lang.Object
  extended by ome.services.util.BeanHelper

public class BeanHelper
extends Object

Helper for all bean implementations. This allows us to (largely) not subclass a single abstract bean.

Since:
3.0-Beta2
Author:
Josh Moore, josh.moore at gmx.de

Constructor Summary
BeanHelper(Class implementationClass)
           
 
Method Summary
 void acquireContext()
          Lazy loads the application context, which means that if we're not in the application server, then the OmeroContext.MANAGED_CONTEXT should never get loaded.
 void configure(SelfConfigurableService bean)
           
 org.apache.commons.logging.Log getLogger()
           
 String getLogString(SelfConfigurableService bean)
           
 void passivationNotAllowed()
           
 void throwIfAlreadySet(Object current, Object injected)
           
 Exception translateException(Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanHelper

public BeanHelper(Class implementationClass)
Method Detail

acquireContext

public final void acquireContext()
Lazy loads the application context, which means that if we're not in the application server, then the OmeroContext.MANAGED_CONTEXT should never get loaded.


configure

public final void configure(SelfConfigurableService bean)

throwIfAlreadySet

public void throwIfAlreadySet(Object current,
                              Object injected)

passivationNotAllowed

public void passivationNotAllowed()

translateException

public Exception translateException(Throwable t)

getLogger

public org.apache.commons.logging.Log getLogger()

getLogString

public String getLogString(SelfConfigurableService bean)


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

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