Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.SingletonBean.localBean()


    @Module
    public EnterpriseBean asyncConstructBean() {
        final SingletonBean singletonBean = new SingletonBean(BuildMeAsync.class);
        singletonBean.setInitOnStartup(true);
        return singletonBean.localBean();
    }

    @Test
    public void postConstructShouldEndsBeforeAsyncCall() {
        final long constructed = buildMeAsync.getStartEnd();
View Full Code Here


    @Module
    public EnterpriseBean asyncConstructBean() {
        final SingletonBean singletonBean = new SingletonBean(BuildMeAsync.class);
        singletonBean.setInitOnStartup(true);
        return singletonBean.localBean();
    }

    @Test
    public void postConstructShouldEndsBeforeAsyncCall() {
        final long start = buildMeAsync.getStartEnd();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.