if (description.isTimerServiceRequired()) { userAroundTimeoutsByInterceptorClass = new HashMap<>(); } else { final List<InterceptorFactory> userAroundTimeouts = new ArrayList<InterceptorFactory>(); final boolean requiresTimerChain = description.isTimerServiceRequired() && timeoutMethods.contains(identifier); if (!description.isExcludeDefaultInterceptors() && !description.isExcludeDefaultInterceptors(identifier)) { for (InterceptorDescription interceptorDescription : description.getDefaultInterceptors()) {
if (description.isTimerServiceRequired()) { componentUserAroundTimeout = new ArrayList<>(); } else { final boolean requiresTimerChain = description.isTimerServiceRequired() && timeoutMethods.contains(identifier); if(requiresTimerChain) { configuration.addComponentInterceptor(method, new UserInterceptorFactory(weaved(componentUserAroundInvoke), weaved(componentUserAroundTimeout)), InterceptorOrder.Component.COMPONENT_USER_INTERCEPTORS);
if(componentDescription.isTimerServiceRequired()) {
@Override public void handle(final Class<?> clazz, EEModuleClassDescription classDescription) throws DeploymentUnitProcessingException { final InterceptorClassDescription interceptorConfig = InterceptorClassDescription.merge(ComponentDescription.mergeInterceptorConfig(clazz, classDescription, description, metadataComplete), moduleDescription.getInterceptorClassOverride(clazz.getName())); handleClassMethod(clazz, interceptorConfig.getAroundInvoke(), componentUserAroundInvoke, false, false, configuration); if (description.isTimerServiceRequired()) { handleClassMethod(clazz, interceptorConfig.getAroundTimeout(), componentUserAroundTimeout, false, false, configuration); } if (!description.isIgnoreLifecycleInterceptors()) { handleClassMethod(clazz, interceptorConfig.getPostConstruct(), userPostConstruct, true, true, configuration); handleClassMethod(clazz, interceptorConfig.getPreDestroy(), userPreDestroy, true, true, configuration); if (description.isPassivationApplicable()) { handleClassMethod(clazz, interceptorConfig.getPrePassivate(), componentUserPrePassivate, false, true, configuration); handleClassMethod(clazz, interceptorConfig.getPostActivate(), componentUserPostActivate, false, true, configuration); } } }
handleInterceptorClass(clazz, aroundInvokeMethodIdentifier, userAroundInvokesByInterceptorClass, false, false); if (description.isTimerServiceRequired()) { final MethodIdentifier aroundTimeoutMethodIdentifier = interceptorConfig.getAroundTimeout(); handleInterceptorClass(clazz, aroundTimeoutMethodIdentifier, userAroundTimeoutsByInterceptorClass, false, false);
if (description.isTimerServiceRequired()) {
if (description.isTimerServiceRequired()) { userAroundTimeoutsByInterceptorClass = new HashMap<>(); } else { final List<InterceptorFactory> userAroundTimeouts = new ArrayList<InterceptorFactory>(); final boolean requiresTimerChain = description.isTimerServiceRequired() && timeoutMethods.contains(identifier); if (!description.isExcludeDefaultInterceptors() && !description.isExcludeDefaultInterceptors(identifier)) { for (InterceptorDescription interceptorDescription : description.getDefaultInterceptors()) {
if (description.isTimerServiceRequired()) { userAroundTimeoutsByInterceptorClass = new HashMap<>(); } else { final List<InterceptorFactory> userAroundTimeouts = new ArrayList<InterceptorFactory>(); final boolean requiresTimerChain = description.isTimerServiceRequired() && timeoutMethods.contains(identifier); if (!description.isExcludeDefaultInterceptors() && !description.isExcludeDefaultInterceptors(identifier)) { for (InterceptorDescription interceptorDescription : description.getDefaultInterceptors()) {
if (description.isTimerServiceRequired()) { componentUserAroundTimeout = new ArrayList<>(); } else { final boolean requiresTimerChain = description.isTimerServiceRequired() && timeoutMethods.contains(identifier); if(requiresTimerChain) { configuration.addComponentInterceptor(method, new UserInterceptorFactory(weaved(componentUserAroundInvoke), weaved(componentUserAroundTimeout)), InterceptorOrder.Component.COMPONENT_USER_INTERCEPTORS);
if (description.isTimerServiceRequired()) { componentUserAroundTimeout = new ArrayList<>(); } else { final boolean requiresTimerChain = description.isTimerServiceRequired() && timeoutMethods.contains(identifier); if(requiresTimerChain) { configuration.addComponentInterceptor(method, new UserInterceptorFactory(weaved(componentUserAroundInvoke), weaved(componentUserAroundTimeout)), InterceptorOrder.Component.COMPONENT_USER_INTERCEPTORS);
@Override public void handle(final Class<?> clazz, EEModuleClassDescription classDescription) throws DeploymentUnitProcessingException { final InterceptorClassDescription interceptorConfig = InterceptorClassDescription.merge(ComponentDescription.mergeInterceptorConfig(clazz, classDescription, description, metadataComplete), moduleDescription.getInterceptorClassOverride(clazz.getName())); handleClassMethod(clazz, interceptorConfig.getAroundInvoke(), componentUserAroundInvoke, false, false, configuration); if (description.isTimerServiceRequired()) { handleClassMethod(clazz, interceptorConfig.getAroundTimeout(), componentUserAroundTimeout, false, false, configuration); } if (!description.isIgnoreLifecycleInterceptors()) { handleClassMethod(clazz, interceptorConfig.getPostConstruct(), userPostConstruct, true, true, configuration); handleClassMethod(clazz, interceptorConfig.getPreDestroy(), userPreDestroy, true, true, configuration); if (description.isPassivationApplicable()) { handleClassMethod(clazz, interceptorConfig.getPrePassivate(), componentUserPrePassivate, false, true, configuration); handleClassMethod(clazz, interceptorConfig.getPostActivate(), componentUserPostActivate, false, true, configuration); } } }
@Override public void handle(final Class<?> clazz, EEModuleClassDescription classDescription) throws DeploymentUnitProcessingException { final InterceptorClassDescription interceptorConfig = InterceptorClassDescription.merge(ComponentDescription.mergeInterceptorConfig(clazz, classDescription, description, metadataComplete), moduleDescription.getInterceptorClassOverride(clazz.getName())); handleClassMethod(clazz, interceptorConfig.getAroundInvoke(), componentUserAroundInvoke, false, false, configuration); if (description.isTimerServiceRequired()) { handleClassMethod(clazz, interceptorConfig.getAroundTimeout(), componentUserAroundTimeout, false, false, configuration); } if (!description.isIgnoreLifecycleInterceptors()) { handleClassMethod(clazz, interceptorConfig.getPostConstruct(), userPostConstruct, true, true, configuration); handleClassMethod(clazz, interceptorConfig.getPreDestroy(), userPreDestroy, true, true, configuration); if (description.isPassivationApplicable()) { handleClassMethod(clazz, interceptorConfig.getPrePassivate(), componentUserPrePassivate, false, true, configuration); handleClassMethod(clazz, interceptorConfig.getPostActivate(), componentUserPostActivate, false, true, configuration); } } }
handleInterceptorClass(clazz, aroundInvokeMethodIdentifier, userAroundInvokesByInterceptorClass, false, false); if (description.isTimerServiceRequired()) { final MethodIdentifier aroundTimeoutMethodIdentifier = interceptorConfig.getAroundTimeout(); handleInterceptorClass(clazz, aroundTimeoutMethodIdentifier, userAroundTimeoutsByInterceptorClass, false, false);
handleInterceptorClass(clazz, aroundInvokeMethodIdentifier, userAroundInvokesByInterceptorClass, false, false); if (description.isTimerServiceRequired()) { final MethodIdentifier aroundTimeoutMethodIdentifier = interceptorConfig.getAroundTimeout(); handleInterceptorClass(clazz, aroundTimeoutMethodIdentifier, userAroundTimeoutsByInterceptorClass, false, false);