@Override public void configure(DeploymentPhaseContext deploymentPhaseContext, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException { final ComponentDescription componentDescription = componentConfiguration.getComponentDescription(); // ideally it should always be an EJBComponentDescription when this view configurator is invoked, but let's just make sure if (!(componentDescription instanceof EJBComponentDescription)) { return; } final EJBComponentDescription ejbComponentDescription = (EJBComponentDescription) componentDescription; // we don't want to waste time processing if there are no container interceptors applicable for the EJB final Set<InterceptorDescription> allContainerInterceptors = ejbComponentDescription.getAllContainerInterceptors(); if (allContainerInterceptors == null || allContainerInterceptors.isEmpty()) { return; } // do the processing this.doConfigure(deploymentPhaseContext, ejbComponentDescription, viewConfiguration); }
for (final InterceptorDescription interceptorDescription : ejbComponentDescription.getAllContainerInterceptors()) { final String interceptorClassName = interceptorDescription.getInterceptorClassName(); final Class<?> intereptorClass;
@Override public void configure(DeploymentPhaseContext deploymentPhaseContext, ComponentConfiguration componentConfiguration, ViewDescription viewDescription, ViewConfiguration viewConfiguration) throws DeploymentUnitProcessingException { final ComponentDescription componentDescription = componentConfiguration.getComponentDescription(); // ideally it should always be a EJBComponentDescription when this view configurator is invoked, but let's just make sure if (!(componentDescription instanceof EJBComponentDescription)) { return; } final EJBComponentDescription ejbComponentDescription = (EJBComponentDescription) componentDescription; // we don't want to waste time processing if there are no container interceptors applicable for the EJB final Set<InterceptorDescription> allContainerInterceptors = ejbComponentDescription.getAllContainerInterceptors(); if (allContainerInterceptors == null || allContainerInterceptors.isEmpty()) { return; } // do the processing this.doConfigure(deploymentPhaseContext, ejbComponentDescription, viewConfiguration); }
for (final InterceptorDescription interceptorDescription : ejbComponentDescription.getAllContainerInterceptors()) { final String interceptorClassName = interceptorDescription.getInterceptorClassName(); final ClassIndex interceptorClassIndex;