Tabnine Logo
PostConstructHandler.getDefaultProcessedResult
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefaultProcessedResult
method
in
com.sun.enterprise.deployment.annotation.handlers.PostConstructHandler

Best Java code snippets using com.sun.enterprise.deployment.annotation.handlers.PostConstructHandler.getDefaultProcessedResult (Showing top 2 results out of 315)

origin: org.glassfish.main.deployment/dol

  protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo,
      ResourceContainerContext[] rcContexts)
      throws AnnotationProcessorException {

    Method annMethod = (Method)ainfo.getAnnotatedElement();
    validateAnnotatedLifecycleMethod(annMethod);
    String pcMethodName = annMethod.getName();
    String pcClassName = annMethod.getDeclaringClass().getName();

    for (ResourceContainerContext rcContext : rcContexts) {
      LifecycleCallbackDescriptor postConstructDesc =
          new LifecycleCallbackDescriptor();
      postConstructDesc.setLifecycleCallbackClass(pcClassName);
      postConstructDesc.setLifecycleCallbackMethod(pcMethodName);
      postConstructDesc.setMetadataSource(MetadataSource.ANNOTATION);
      // override by xml is handled in addPostConstructDescriptor
      rcContext.addPostConstructDescriptor(postConstructDesc);
    }

    return getDefaultProcessedResult();
  }
}
origin: org.glassfish.deployment/dol

  protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo,
      ResourceContainerContext[] rcContexts)
      throws AnnotationProcessorException {

    PostConstruct postConstructAn =
        (PostConstruct)ainfo.getAnnotation();
    Method annMethod = (Method)ainfo.getAnnotatedElement();
    String pcMethodName = annMethod.getName();
    String pcClassName = annMethod.getDeclaringClass().getName();

    for (ResourceContainerContext rcContext : rcContexts) {
      LifecycleCallbackDescriptor postConstructDesc =
          new LifecycleCallbackDescriptor();
      postConstructDesc.setLifecycleCallbackClass(pcClassName);
      postConstructDesc.setLifecycleCallbackMethod(pcMethodName);
      postConstructDesc.setMetadataSource(MetadataSource.ANNOTATION);
      // override by xml is handled in addPostConstructDescriptor
      rcContext.addPostConstructDescriptor(postConstructDesc);
    }

    return getDefaultProcessedResult();
  }
}
com.sun.enterprise.deployment.annotation.handlersPostConstructHandlergetDefaultProcessedResult

Popular methods of PostConstructHandler

  • validateAnnotatedLifecycleMethod

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now