Search in sources :

Example 11 with Empty$JAXB.readEmpty

use of org.apache.openejb.jee.Empty$JAXB.readEmpty in project tomee by apache.

the class BeanValidationTest method app.

@Module
public StatelessBean app() throws Exception {
    final StatelessBean bean = new StatelessBean(PersistManager.class);
    bean.setLocalBean(new Empty());
    return bean;
}
Also used : Empty(org.apache.openejb.jee.Empty) StatelessBean(org.apache.openejb.jee.StatelessBean) Module(org.apache.openejb.testing.Module)

Example 12 with Empty$JAXB.readEmpty

use of org.apache.openejb.jee.Empty$JAXB.readEmpty in project tomee by apache.

the class AbstractCDIInjectionTest method app.

@Module
public EjbModule app() throws Exception {
    final StatelessBean bean = new StatelessBean(AppJpaDAO.class);
    bean.setLocalBean(new Empty());
    final StatelessBean test = new StatelessBean(AppCDI.class);
    bean.setLocalBean(new Empty());
    final EjbJar ejbJar = new EjbJar();
    ejbJar.addEnterpriseBean(bean);
    ejbJar.addEnterpriseBean(test);
    final Beans beans = new Beans();
    beans.addManagedClass(PlcBaseDAO.class);
    beans.addManagedClass(PlcBaseJpaDAO.class);
    final EjbModule jar = new EjbModule(ejbJar);
    jar.setBeans(beans);
    return jar;
}
Also used : Empty(org.apache.openejb.jee.Empty) Beans(org.apache.openejb.jee.Beans) StatelessBean(org.apache.openejb.jee.StatelessBean) EjbModule(org.apache.openejb.config.EjbModule) EjbJar(org.apache.openejb.jee.EjbJar) EjbModule(org.apache.openejb.config.EjbModule) Module(org.apache.openejb.testing.Module)

Example 13 with Empty$JAXB.readEmpty

use of org.apache.openejb.jee.Empty$JAXB.readEmpty in project tomee by apache.

the class AbstractInjectionTest method app.

@Module
public EjbModule app() throws Exception {
    final StatelessBean bean = new StatelessBean(AppJpaDAO.class);
    bean.setLocalBean(new Empty());
    final StatelessBean test = new StatelessBean(AppCDI.class);
    bean.setLocalBean(new Empty());
    final EjbJar ejbJar = new EjbJar();
    ejbJar.addEnterpriseBean(bean);
    ejbJar.addEnterpriseBean(test);
    final Beans beans = new Beans();
    beans.addManagedClass(PlcBaseDAO.class);
    beans.addManagedClass(PlcBaseJpaDAO.class);
    beans.addManagedClass(AppCDI.class);
    beans.addManagedClass(AppJpaDAO.class);
    final EjbModule jar = new EjbModule(ejbJar);
    jar.setBeans(beans);
    return jar;
}
Also used : Empty(org.apache.openejb.jee.Empty) Beans(org.apache.openejb.jee.Beans) StatelessBean(org.apache.openejb.jee.StatelessBean) EjbModule(org.apache.openejb.config.EjbModule) EjbJar(org.apache.openejb.jee.EjbJar) EjbModule(org.apache.openejb.config.EjbModule) Module(org.apache.openejb.testing.Module)

Example 14 with Empty$JAXB.readEmpty

use of org.apache.openejb.jee.Empty$JAXB.readEmpty in project tomee by apache.

the class ImportSqlScriptTest method app.

@Module
public SingletonBean app() throws Exception {
    final SingletonBean bean = new SingletonBean(Persister.class);
    bean.setLocalBean(new Empty());
    return bean;
}
Also used : SingletonBean(org.apache.openejb.jee.SingletonBean) Empty(org.apache.openejb.jee.Empty) Module(org.apache.openejb.testing.Module)

Example 15 with Empty$JAXB.readEmpty

use of org.apache.openejb.jee.Empty$JAXB.readEmpty in project tomee by apache.

the class StatelessContainerTest method app.

@Module
public StatelessBean app() throws Exception {
    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 Empty());
    return bean;
}
Also used : Empty(org.apache.openejb.jee.Empty) StatelessBean(org.apache.openejb.jee.StatelessBean) Module(org.apache.openejb.testing.Module)

Aggregations

Empty (org.apache.openejb.jee.Empty)19 Module (org.apache.openejb.testing.Module)18 StatelessBean (org.apache.openejb.jee.StatelessBean)12 Empty$JAXB.readEmpty (org.apache.openejb.jee.Empty$JAXB.readEmpty)10 Empty$JAXB.writeEmpty (org.apache.openejb.jee.Empty$JAXB.writeEmpty)10 Text$JAXB.readText (org.apache.openejb.jee.Text$JAXB.readText)10 Text$JAXB.writeText (org.apache.openejb.jee.Text$JAXB.writeText)10 RuntimeContext (org.metatype.sxc.jaxb.RuntimeContext)10 CollapsedStringAdapter (javax.xml.bind.annotation.adapters.CollapsedStringAdapter)6 SingletonBean (org.apache.openejb.jee.SingletonBean)6 ArrayList (java.util.ArrayList)5 QName (javax.xml.namespace.QName)5 EjbJar (org.apache.openejb.jee.EjbJar)5 Attribute (org.metatype.sxc.util.Attribute)5 XoXMLStreamReader (org.metatype.sxc.util.XoXMLStreamReader)5 EjbModule (org.apache.openejb.config.EjbModule)4 DataSource$JAXB.readDataSource (org.apache.openejb.jee.DataSource$JAXB.readDataSource)4 DataSource$JAXB.writeDataSource (org.apache.openejb.jee.DataSource$JAXB.writeDataSource)4 EjbLocalRef$JAXB.readEjbLocalRef (org.apache.openejb.jee.EjbLocalRef$JAXB.readEjbLocalRef)4 EjbLocalRef$JAXB.writeEjbLocalRef (org.apache.openejb.jee.EjbLocalRef$JAXB.writeEjbLocalRef)4