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 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.
      • 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)