Search in sources :

Example 26 with Empty$JAXB.writeEmpty

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;
}
Also used : Empty(org.apache.openejb.jee.Empty) StatelessBean(org.apache.openejb.jee.StatelessBean) Module(org.apache.openejb.testing.Module)

Example 27 with Empty$JAXB.writeEmpty

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;
}
Also used : SingletonBean(org.apache.openejb.jee.SingletonBean) Empty(org.apache.openejb.jee.Empty) Module(org.apache.openejb.testing.Module)

Example 28 with Empty$JAXB.writeEmpty

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;
}
Also used : SingletonBean(org.apache.openejb.jee.SingletonBean) Empty(org.apache.openejb.jee.Empty) OpenejbJar(org.apache.openejb.jee.oejb3.OpenejbJar) EjbModule(org.apache.openejb.config.EjbModule) EjbDeployment(org.apache.openejb.jee.oejb3.EjbDeployment) EjbJar(org.apache.openejb.jee.EjbJar) EjbModule(org.apache.openejb.config.EjbModule) Module(org.apache.openejb.testing.Module)

Example 29 with Empty$JAXB.writeEmpty

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;
}
Also used : SingletonBean(org.apache.openejb.jee.SingletonBean) Empty(org.apache.openejb.jee.Empty) OpenejbJar(org.apache.openejb.jee.oejb3.OpenejbJar) EjbModule(org.apache.openejb.config.EjbModule) PojoDeployment(org.apache.openejb.jee.oejb3.PojoDeployment) EjbJar(org.apache.openejb.jee.EjbJar) EjbModule(org.apache.openejb.config.EjbModule) Module(org.apache.openejb.testing.Module)

Example 30 with Empty$JAXB.writeEmpty

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;
}
Also used : SingletonBean(org.apache.openejb.jee.SingletonBean) Empty(org.apache.openejb.jee.Empty) Module(org.apache.openejb.testing.Module)

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)7 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