/** * * @return <code>true</code> if this component has timeout methods and is eligible for a 'real' timer service */ public boolean isTimerServiceRequired() { return isTimerServiceApplicable() && !getTimerMethods().isEmpty(); }
if (componentDescription.isTimerServiceApplicable()) { if(componentDescription.isTimerServiceRequired()) {
/** * * @return <code>true</code> if this component has timeout methods and is eligible for a 'real' timer service */ public boolean isTimerServiceRequired() { return isTimerServiceApplicable() && !getTimerMethods().isEmpty(); }
/** * * @return <code>true</code> if this component has timeout methods and is eligible for a 'real' timer service */ public boolean isTimerServiceRequired() { return isTimerServiceApplicable() && !getTimerMethods().isEmpty(); }
final Map<String, List<InterceptorFactory>> userPreDestroyByInterceptorClass = new HashMap<String, List<InterceptorFactory>>(); if (description.isTimerServiceApplicable()) { componentUserAroundTimeout = new ArrayList<InterceptorFactory>(); userAroundTimeoutsByInterceptorClass = new HashMap<String, List<InterceptorFactory>>(); userAroundInvokes.addAll(aroundInvokes); if (description.isTimerServiceApplicable()) { List<InterceptorFactory> aroundTimeouts = userAroundTimeoutsByInterceptorClass.get(interceptorClassName); if (aroundTimeouts != null) { userAroundInvokes.addAll(aroundInvokes); if (description.isTimerServiceApplicable()) { List<InterceptorFactory> aroundTimeouts = userAroundTimeoutsByInterceptorClass.get(interceptorClassName); if (aroundTimeouts != null) { userAroundInvokes.addAll(aroundInvokes); if (description.isTimerServiceApplicable()) { List<InterceptorFactory> aroundTimeouts = userAroundTimeoutsByInterceptorClass.get(interceptorClassName); if (aroundTimeouts != null) {
@Override public void handle(final Class<?> clazz, EEModuleClassDescription classDescription) throws DeploymentUnitProcessingException { final InterceptorClassDescription interceptorConfig = InterceptorClassDescription.merge(mergeInterceptorConfig(clazz, classDescription, description, metadataComplete), moduleDescription.getInterceptorClassOverride(clazz.getName())); handleClassMethod(clazz, interceptorConfig.getPostConstruct(), userPostConstruct, true, true); handleClassMethod(clazz, interceptorConfig.getPreDestroy(), userPreDestroy, true, true); handleClassMethod(clazz, interceptorConfig.getAroundInvoke(), componentUserAroundInvoke, false, false); if (description.isTimerServiceApplicable()) { handleClassMethod(clazz, interceptorConfig.getAroundTimeout(), componentUserAroundTimeout, false, false); } if (description.isPassivationApplicable()) { handleClassMethod(clazz, interceptorConfig.getPrePassivate(), userPrePassivate, false, false); handleClassMethod(clazz, interceptorConfig.getPostActivate(), userPostActivate, false, false); } }
if (component.isTimerServiceApplicable()) {
@Override public void handle(final Class<?> clazz, EEModuleClassDescription classDescription) throws DeploymentUnitProcessingException { mergeInjectionsForClass(clazz, classDescription, moduleDescription, description, configuration, context, injectors, contextKey, uninjectors, metadataComplete); final InterceptorClassDescription interceptorConfig; if (classDescription != null && !metadataComplete) { interceptorConfig = InterceptorClassDescription.merge(classDescription.getInterceptorClassDescription(), moduleDescription.getInterceptorClassOverride(clazz.getName())); } else { interceptorConfig = InterceptorClassDescription.merge(null, moduleDescription.getInterceptorClassOverride(clazz.getName())); } // Only class level interceptors are processed for postconstruct/predestroy methods. // Method level interceptors aren't supposed to be processed for postconstruct/predestroy lifecycle // methods, as per interceptors spec if (interceptorHasLifecycleCallbacks) { final MethodIdentifier postConstructMethodIdentifier = interceptorConfig.getPostConstruct(); handleInterceptorClass(clazz, postConstructMethodIdentifier, userPostConstructByInterceptorClass, true, true); final MethodIdentifier preDestroyMethodIdentifier = interceptorConfig.getPreDestroy(); handleInterceptorClass(clazz, preDestroyMethodIdentifier, userPreDestroyByInterceptorClass, true, true); } final MethodIdentifier aroundInvokeMethodIdentifier = interceptorConfig.getAroundInvoke(); handleInterceptorClass(clazz, aroundInvokeMethodIdentifier, userAroundInvokesByInterceptorClass, false, false); if (description.isTimerServiceApplicable()) { final MethodIdentifier aroundTimeoutMethodIdentifier = interceptorConfig.getAroundTimeout(); handleInterceptorClass(clazz, aroundTimeoutMethodIdentifier, userAroundTimeoutsByInterceptorClass, false, false); } if (description.isPassivationApplicable()) { handleInterceptorClass(clazz, interceptorConfig.getPrePassivate(), userPrePassivatesByInterceptorClass, false, false); handleInterceptorClass(clazz, interceptorConfig.getPostActivate(), userPostActivatesByInterceptorClass, false, false); } }
if (description.isTimerServiceApplicable()) {