Class CleanupAnnotationIndexProcessor

java.lang.Object
org.jboss.as.server.deployment.annotation.CleanupAnnotationIndexProcessor
All Implemented Interfaces:
DeploymentUnitProcessor

public class CleanupAnnotationIndexProcessor extends Object implements DeploymentUnitProcessor
DUP that removes the Jandex indexes and composite index from the deployment unit to save memory
Author:
Stuart Douglas
  • Constructor Details

    • CleanupAnnotationIndexProcessor

      public CleanupAnnotationIndexProcessor()
  • Method Details

    • deploy

      public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
      Description copied from interface: DeploymentUnitProcessor
      Perform a single step in processing the deployment phase. The resulting state after executing this method should be that either the method completes normally and all changes are made, or an exception is thrown and all changes made in this method are reverted such that the original pre-invocation state is restored.

      Data stored on the phase context only exists until the end of the phase. The deployment unit context which is persistent is available via context.getDeploymentUnitContext().

      Specified by:
      deploy in interface DeploymentUnitProcessor
      Parameters:
      phaseContext - the deployment unit context
      Throws:
      DeploymentUnitProcessingException - if an error occurs during processing