Package org.apache.webbeans.proxy

Examples of org.apache.webbeans.proxy.OwbNormalScopeProxy


    public void destroy(T instance)
    {
        if (instance instanceof OwbNormalScopeProxy)
        {
            OwbNormalScopeProxy proxy = (OwbNormalScopeProxy) instance;
            Provider<T> provider = webBeansContext.getNormalScopeProxyFactory().getInstanceProvider(proxy);
            NormalScopedBeanInterceptorHandler handler = (NormalScopedBeanInterceptorHandler)provider;
            Bean<T> bean = (Bean<T>)handler.getBean();
            CreationalContext<T> creationalContext = (CreationalContext<T>)parentCreationalContext;
            bean.destroy(instance, creationalContext);
View Full Code Here


    public void destroy(T instance)
    {
        if (instance instanceof OwbNormalScopeProxy)
        {
            OwbNormalScopeProxy proxy = (OwbNormalScopeProxy) instance;
            Provider<T> provider = webBeansContext.getNormalScopeProxyFactory().getInstanceProvider(proxy);
            NormalScopedBeanInterceptorHandler handler = (NormalScopedBeanInterceptorHandler)provider;
            Bean<T> bean = (Bean<T>)handler.getBean();
            CreationalContext<T> creationalContext = (CreationalContext<T>)parentCreationalContext;
            bean.destroy(instance, creationalContext);
View Full Code Here

    public void destroy(T instance)
    {
        if (instance instanceof OwbNormalScopeProxy)
        {
            OwbNormalScopeProxy proxy = (OwbNormalScopeProxy) instance;
            Provider<T> provider = webBeansContext.getNormalScopeProxyFactory().getInstanceProvider(proxy);
            NormalScopedBeanInterceptorHandler handler = (NormalScopedBeanInterceptorHandler)provider;
            Bean<T> bean = (Bean<T>)handler.getBean();
            CreationalContext<T> creationalContext = (CreationalContext<T>)parentCreationalContext;
            bean.destroy(instance, creationalContext);
View Full Code Here

        {
            throw new NullPointerException("instance is null, can't be destroyed");
        }
        if (instance instanceof OwbNormalScopeProxy)
        {
            OwbNormalScopeProxy proxy = (OwbNormalScopeProxy) instance;
            Provider<T> provider = webBeansContext.getNormalScopeProxyFactory().getInstanceProvider(proxy);
            NormalScopedBeanInterceptorHandler handler = (NormalScopedBeanInterceptorHandler)provider;
            Bean<T> bean = (Bean<T>)handler.getBean();
            CreationalContext<T> creationalContext = (CreationalContext<T>)parentCreationalContext;
            Class<? extends Annotation> beanScope = bean.getScope();
View Full Code Here

TOP

Related Classes of org.apache.webbeans.proxy.OwbNormalScopeProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.