Class ContextAwareImpl

  • All Implemented Interfaces:
    ContextAware
    Direct Known Subclasses:
    CAI_WithLocatorSupport

    public class ContextAwareImpl
    extends java.lang.Object
    implements ContextAware
    A helper class that implements ContextAware methods. Use this class to implement the ContextAware interface by composition.
    • Field Detail

      • noContextWarning

        private int noContextWarning
      • context

        protected Context context
      • origin

        final java.lang.Object origin
    • Constructor Detail

      • ContextAwareImpl

        public ContextAwareImpl​(Context context,
                                java.lang.Object origin)
    • Method Detail

      • getOrigin

        protected java.lang.Object getOrigin()
      • addInfo

        public void addInfo​(java.lang.String msg)
        Specified by:
        addInfo in interface ContextAware
      • addInfo

        public void addInfo​(java.lang.String msg,
                            java.lang.Throwable ex)
        Specified by:
        addInfo in interface ContextAware
      • addWarn

        public void addWarn​(java.lang.String msg)
        Specified by:
        addWarn in interface ContextAware
      • addWarn

        public void addWarn​(java.lang.String msg,
                            java.lang.Throwable ex)
        Specified by:
        addWarn in interface ContextAware
      • addError

        public void addError​(java.lang.String msg)
        Specified by:
        addError in interface ContextAware
      • addError

        public void addError​(java.lang.String msg,
                             java.lang.Throwable ex)
        Specified by:
        addError in interface ContextAware