use of org.apache.openejb.jee.Empty$JAXB.writeEmpty in project tomee by apache.
the class ResourceLocalEmInjectionTest 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.writeEmpty in project tomee by apache.
the class RsInterceptorInjectionTest method service.
@Module
public static SingletonBean service() throws Exception {
final SingletonBean bean = new SingletonBean(RsInjection.class);
bean.setLocalBean(new Empty());
return bean;
}
use of org.apache.openejb.jee.Empty$JAXB.writeEmpty in project tomee by apache.
the class CustomEndpointConfiguratorTest method module.
@Module
public EjbModule module() {
final EjbModule module = new EjbModule(new EjbJar());
module.setOpenejbJar(new OpenejbJar());
final SingletonBean bean = new SingletonBean(MyWebservice.class);
bean.setLocalBean(new Empty());
final EjbDeployment deployment = new EjbDeployment(bean);
deployment.getProperties().setProperty("openejb.endpoint.configurator", CustomConfigurator.class.getName());
module.getOpenejbJar().addEjbDeployment(deployment);
module.getEjbJar().addEnterpriseBean(bean);
return module;
}
use of org.apache.openejb.jee.Empty$JAXB.writeEmpty in project tomee by apache.
the class CustomContextTest method service.
@Module
public static EjbModule service() throws Exception {
final EjbModule module = new EjbModule(new EjbJar(), new OpenejbJar());
final SingletonBean bean = new SingletonBean(CustomContextInjectedBean.class);
bean.setLocalBean(new Empty());
module.getEjbJar().addEnterpriseBean(bean);
final PojoDeployment e = new PojoDeployment();
e.setClassName("jaxrs-application");
e.getProperties().setProperty("cxf.jaxrs.providers", CustomProvider.class.getName());
module.getOpenejbJar().getPojoDeployment().add(e);
return module;
}
use of org.apache.openejb.jee.Empty$JAXB.writeEmpty in project tomee by apache.
the class RsInjectionTest method service.
@Module
public static SingletonBean service() throws Exception {
final SingletonBean bean = new SingletonBean(RsInjection.class);
bean.setLocalBean(new Empty());
return bean;
}
Aggregations