Refine search
@Override public void postConstruct(T instance) { invoker.postConstruct(instance, instantiator); }
@Override public void preDestroy(T instance) { invoker.preDestroy(instance, instantiator); }
default boolean hasPostConstructCallback() { return hasPostConstructMethods(); }
if (contextual instanceof ManagedBean<?> && !isInterceptorOrDecorator(contextual)) { ManagedBean<?> managedBean = (ManagedBean<?>) contextual; if (managedBean.getProducer() instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> injectionTarget = (BasicInjectionTarget<?>) managedBean.getProducer(); if (!injectionTarget.getLifecycleCallbackInvoker().hasPreDestroyMethods() && !injectionTarget.hasInterceptors()) {
private boolean initHasPostConstructCallback(InjectionTarget<T> producer) { if (producer instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> weldProducer = (BasicInjectionTarget<?>) producer; final InterceptionModel interceptors = getInterceptors(); if (interceptors == null || interceptors.getInterceptors(InterceptionType.POST_CONSTRUCT, null).isEmpty()) { if (!weldProducer.getLifecycleCallbackInvoker().hasPostConstructCallback()) { return false; } } } // otherwise we assume there is a post construct callback, just to be safe return true; } }
if (contextual instanceof ManagedBean<?> && !isInterceptorOrDecorator(contextual)) { ManagedBean<?> managedBean = (ManagedBean<?>) contextual; if (managedBean.getProducer() instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> injectionTarget = (BasicInjectionTarget<?>) managedBean.getProducer(); if (!injectionTarget.getLifecycleCallbackInvoker().hasPreDestroyMethods() && !injectionTarget.hasInterceptors()) {
private boolean initHasPostConstructCallback(InjectionTarget<T> producer) { if (producer instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> weldProducer = (BasicInjectionTarget<?>) producer; final InterceptionModel interceptors = getInterceptors(); if (interceptors == null || interceptors.getInterceptors(InterceptionType.POST_CONSTRUCT, null).isEmpty()) { if (!weldProducer.getLifecycleCallbackInvoker().hasPostConstructCallback()) { return false; } } } // otherwise we assume there is a post construct callback, just to be safe return true; } }
if (contextual instanceof ManagedBean<?> && !isInterceptorOrDecorator(contextual)) { ManagedBean<?> managedBean = (ManagedBean<?>) contextual; if (managedBean.getProducer() instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> injectionTarget = (BasicInjectionTarget<?>) managedBean.getProducer(); if (!injectionTarget.getLifecycleCallbackInvoker().hasPreDestroyMethods() && !injectionTarget.hasInterceptors()) {
private boolean initHasPostConstructCallback(InjectionTarget<T> producer) { if (producer instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> weldProducer = (BasicInjectionTarget<?>) producer; final InterceptionModel interceptors = getInterceptors(); if (interceptors == null || interceptors.getInterceptors(InterceptionType.POST_CONSTRUCT, null).isEmpty()) { if (!weldProducer.getLifecycleCallbackInvoker().hasPostConstructCallback()) { return false; } } } // otherwise we assume there is a post construct callback, just to be safe return true; } }
@Override public void preDestroy(T instance) { invoker.preDestroy(instance, instantiator); }
@Override public void postConstruct(T instance) { invoker.postConstruct(instance, instantiator); }
default boolean hasPostConstructCallback() { return hasPostConstructMethods(); }
if (contextual instanceof ManagedBean<?> && !isInterceptorOrDecorator(contextual)) { ManagedBean<?> managedBean = (ManagedBean<?>) contextual; if (managedBean.getProducer() instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> injectionTarget = (BasicInjectionTarget<?>) managedBean.getProducer(); if (!injectionTarget.getLifecycleCallbackInvoker().hasPreDestroyMethods() && !injectionTarget.hasInterceptors()) {
private boolean initHasPostConstructCallback(InjectionTarget<T> producer) { if (producer instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> weldProducer = (BasicInjectionTarget<?>) producer; final InterceptionModel interceptors = getInterceptors(); if (interceptors == null || interceptors.getInterceptors(InterceptionType.POST_CONSTRUCT, null).isEmpty()) { if (!weldProducer.getLifecycleCallbackInvoker().hasPostConstructCallback()) { return false; } } } // otherwise we assume there is a post construct callback, just to be safe return true; } }
@Override public void preDestroy(T instance) { invoker.preDestroy(instance, instantiator); }
@Override public void postConstruct(T instance) { invoker.postConstruct(instance, instantiator); }
default boolean hasPostConstructCallback() { return hasPostConstructMethods(); }
if (contextual instanceof ManagedBean<?> && !isInterceptorOrDecorator(contextual)) { ManagedBean<?> managedBean = (ManagedBean<?>) contextual; if (managedBean.getProducer() instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> injectionTarget = (BasicInjectionTarget<?>) managedBean.getProducer(); if (!injectionTarget.getLifecycleCallbackInvoker().hasPreDestroyMethods() && !injectionTarget.hasInterceptors()) {
private boolean initHasPostConstructCallback(InjectionTarget<T> producer) { if (producer instanceof BasicInjectionTarget<?>) { BasicInjectionTarget<?> weldProducer = (BasicInjectionTarget<?>) producer; final InterceptionModel interceptors = getInterceptors(); if (interceptors == null || interceptors.getInterceptors(InterceptionType.POST_CONSTRUCT, null).isEmpty()) { if (!weldProducer.getLifecycleCallbackInvoker().hasPostConstructCallback()) { return false; } } } // otherwise we assume there is a post construct callback, just to be safe return true; } }
@Override public void preDestroy(T instance) { invoker.preDestroy(instance, instantiator); }