Search in sources :

Example 6 with Empty

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

the class StatefulJPATest method app.

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

Example 7 with Empty

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

the class ThisInConstructorTest method bean.

@Module
public StatelessBean bean() {
    final StatelessBean bean = new StatelessBean(AStatelessWithAConstructor.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 8 with Empty

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

the class StatelessWithAroundInvokeOnlyTest method bean.

@Module
@Classes(cdi = true)
public StatelessBean bean() {
    final StatelessBean bean = new StatelessBean(StatelessTestBean.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) Classes(org.apache.openejb.testing.Classes)

Example 9 with Empty

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

the class AppComposerAsJUnitRuleTest 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 10 with Empty

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

the class BasicInjectionTest method app.

@Module
@Classes(cdi = true, value = { Configuration.class })
public StatelessBean app() throws Exception {
    final StatelessBean bean = new StatelessBean(WidgetBean.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) Classes(org.apache.openejb.testing.Classes)

Aggregations

Empty (org.apache.openejb.jee.Empty)20 Module (org.apache.openejb.testing.Module)19 StatelessBean (org.apache.openejb.jee.StatelessBean)13 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