Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.EmptyType


            // It goes a little beyond that, but no one has ever complained about having
            // more local interfaces.
            for (Class interfce : all.unspecified) sessionBean.addBusinessLocal(interfce);

            if (beanClass.getAnnotation(LocalBean.class) != null || beanClass.getInterfaces().length == 0) {
                sessionBean.setLocalBean(new EmptyType());
            }

        }
View Full Code Here


        final StatelessBean bean = new StatelessBean(WidgetBean.class);
        bean.addBusinessLocal(Widget.class.getName());
        bean.addBusinessRemote(RemoteWidget.class.getName());
        bean.addPostConstruct("init");
        bean.addPreDestroy("destroy");
        bean.setLocalBean(new EmptyType());

        return bean;
    }
View Full Code Here

        SingletonBean bean = new SingletonBean(WidgetBean.class);
        bean.addBusinessLocal(Widget.class.getName());
        bean.addBusinessRemote(RemoteWidget.class.getName());
        bean.addPostConstruct("init");
        bean.addPreDestroy("destroy");
        bean.setLocalBean(new EmptyType());

        EjbJar ejbJar = new EjbJar();
        ejbJar.addEnterpriseBean(bean);

        assembler.createApplication(config.configureApplication(ejbJar));
View Full Code Here

            // It goes a little beyond that, but no one has ever complained about having
            // more local interfaces.
            if (!strict) for (Class interfce : all.unspecified) sessionBean.addBusinessLocal(interfce);

            if (beanClass.getAnnotation(LocalBean.class) != null || beanClass.getInterfaces().length == 0) {
                sessionBean.setLocalBean(new EmptyType());
            }

        }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.EmptyType

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.