Package ome.services.util
Class BeanHelper
- java.lang.Object
-
- ome.services.util.BeanHelper
-
public class BeanHelper extends java.lang.ObjectHelper for all bean implementations. This allows us to (largely) not subclass a single abstract bean.- Since:
- 3.0-Beta2
-
-
Constructor Summary
Constructors Constructor Description BeanHelper(java.lang.Class implementationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquireContext()Lazy loads the application context, which means that if we're not in the application server, then theOmeroContext.MANAGED_CONTEXTshould never get loaded.voidconfigure(ome.system.SelfConfigurableService bean)org.slf4j.LoggergetLogger()java.lang.StringgetLogString(ome.system.SelfConfigurableService bean)voidpassivationNotAllowed()voidthrowIfAlreadySet(java.lang.Object current, java.lang.Object injected)java.lang.ExceptiontranslateException(java.lang.Throwable t)
-
-
-
Method Detail
-
acquireContext
public final void acquireContext()
Lazy loads the application context, which means that if we're not in the application server, then theOmeroContext.MANAGED_CONTEXTshould never get loaded.
-
configure
public final void configure(ome.system.SelfConfigurableService bean)
-
throwIfAlreadySet
public void throwIfAlreadySet(java.lang.Object current, java.lang.Object injected)
-
passivationNotAllowed
public void passivationNotAllowed()
-
translateException
public java.lang.Exception translateException(java.lang.Throwable t)
-
getLogger
public org.slf4j.Logger getLogger()
-
getLogString
public java.lang.String getLogString(ome.system.SelfConfigurableService bean)
-
-