Class BeanHelper


  • public class BeanHelper
    extends java.lang.Object
    Helper 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
      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​(ome.system.SelfConfigurableService bean)  
      org.slf4j.Logger getLogger()  
      java.lang.String getLogString​(ome.system.SelfConfigurableService bean)  
      void passivationNotAllowed()  
      void throwIfAlreadySet​(java.lang.Object current, java.lang.Object injected)  
      java.lang.Exception translateException​(java.lang.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​(java.lang.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​(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)