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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations