Package org.apache.webbeans.component

Examples of org.apache.webbeans.component.ManagerComponentImpl


    }

    @Test
    public void testManagerResolution()
    {
        ManagerComponentImpl component = WebBeansUtil.getManagerComponent();
        Manager manager = getManager().getInstance(component);

        Assert.assertNotNull(manager);
    }
View Full Code Here


        return component;
    }

    public static ManagerComponentImpl getManagerComponent()
    {
        ManagerComponentImpl managerComponent = new ManagerComponentImpl();

        managerComponent.setImplScopeType(new DependentScopeLiteral());
        managerComponent.setType(new StandardLiteral());
        managerComponent.addBindingType(new CurrentLiteral());
        managerComponent.addApiType(Manager.class);
        managerComponent.addApiType(Object.class);

        return managerComponent;
    }
View Full Code Here

        return component;
    }

    public static ManagerComponentImpl getManagerComponent()
    {
        ManagerComponentImpl managerComponent = new ManagerComponentImpl();

        managerComponent.setImplScopeType(new DependentScopeLiteral());
        managerComponent.setType(new StandardLiteral());
        managerComponent.addBindingType(new CurrentLiteral());
        managerComponent.addApiType(Manager.class);
        managerComponent.addApiType(Object.class);

        return managerComponent;
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.component.ManagerComponentImpl

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.