Class AnnotationBasedLifeCycleCallbacksFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationBasedLifeCycleCallbacksFactory​(java.lang.Class<? extends java.lang.annotation.Annotation> postConstruct, java.lang.Class<? extends java.lang.annotation.Annotation> preDestroy)
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LifeCycleCallbacks create​(java.lang.Class<?> cls)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationBasedLifeCycleCallbacksFactory

        public AnnotationBasedLifeCycleCallbacksFactory​(java.lang.Class<? extends java.lang.annotation.Annotation> postConstruct,
                                                        java.lang.Class<? extends java.lang.annotation.Annotation> preDestroy)
        Constructs a new instance.
        Parameters:
        postConstruct - a marker annotation Class for post construct methods, cannot be null
        preDestroy - a marker annotation Class for pre-destroy methods, cannot be null
    • Method Detail

      • create

        public LifeCycleCallbacks create​(java.lang.Class<?> cls)
                                  throws org.int4.dirk.api.definition.DefinitionException
        Specified by:
        create in interface LifeCycleCallbacksFactory
        Throws:
        org.int4.dirk.api.definition.DefinitionException