Examples of ManifestBuilder


Examples of org.jboss.osgi.metadata.ManifestBuilder

        archive.addClass(PointLessMathBean.class);
        archive.addClass(LifecycleTracker.class);
        archive.setManifest(new Asset() {
            @Override
            public InputStream openStream() {
                ManifestBuilder builder = ManifestBuilder.newInstance();
                StringBuffer dependencies = new StringBuffer();
                dependencies.append(DEPLOYED_SINGLETON_MODULE);
                dependencies.append(" , org.hornetq.ra");
                builder.addManifestHeader("Dependencies", dependencies.toString());
                return builder.openStream();
            }
        });
        log.info(archive.toString(true));
        return archive;
    }
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

        "logging1.war");
    archive1.addClasses(LoggingServlet.class);
    archive1.setManifest(new Asset() {
      @Override
      public InputStream openStream() {
        ManifestBuilder builder = ManifestBuilder.newInstance();
        StringBuffer dependencies = new StringBuffer();
        builder.addManifestHeader("Dependencies",
            dependencies.toString());
        builder.addManifestHeader("Logging-Profile", "dummy-profile1");
        return builder.openStream();
      }
    });
    return archive1;
  }
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

        JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, SUB_DEPLOYMENT_NAME);
        ejbJar.addPackage(BEAN_PACKAGE);
        ejbJar.setManifest(new Asset() {
            @Override
            public InputStream openStream() {
                ManifestBuilder builder = ManifestBuilder.newInstance();
                StringBuffer dependencies = new StringBuffer();
                dependencies.append("org.hornetq.ra");
                builder.addManifestHeader("Dependencies", dependencies.toString());
                return builder.openStream();
            }
        });
        EnterpriseArchive earArchive = ShrinkWrap.create(EnterpriseArchive.class, DEPLOYMENT_NAME);
        earArchive.addAsModule(ejbJar);
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

        return ShrinkWrap.create(EnterpriseArchive.class, "logging.ear")
                .addAsManifestResource(LoggingBean.class.getPackage(),
                        "logging.properties", "logging.properties")
                .setManifest(new Asset() {
                    public InputStream openStream() {
                        ManifestBuilder builder = ManifestBuilder.newInstance();
                        builder.addManifestHeader("Dependencies", "org.jboss.logmanager, org.jboss.as.logging");
                        return builder.openStream();
                    }
                })
                .addAsModules(logContextDeployment("logcontext-in-ear.war"), loggingDeployment("logging-in-ear.war"));
    }
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

    @Deployment(name = "logging-profile", testable = false, managed = false)
    public static WebArchive createLoggingProfileDeployment() {
        return loggingDeployment("logging-profile-test.war")
                .setManifest(new Asset() {
                    public InputStream openStream() {
                        ManifestBuilder builder = ManifestBuilder.newInstance();
                        builder.addManifestHeader("Logging-Profile", "test");
                        return builder.openStream();
                    }
                });
    }
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

        return ShrinkWrap.create(EnterpriseArchive.class, "logging-profile.ear")
                .addAsManifestResource(LoggingBean.class.getPackage(),
                        "logging.properties", "logging.properties")
                .setManifest(new Asset() {
                    public InputStream openStream() {
                        ManifestBuilder builder = ManifestBuilder.newInstance();
                        builder.addManifestHeader("Dependencies", "org.jboss.logmanager, org.jboss.as.logging");
                        builder.addManifestHeader("Logging-Profile", "test");
                        return builder.openStream();
                    }
                })
                .addAsModules(logContextDeployment("logcontext-profile-in-ear.war"), loggingDeployment("logging-profile-in-ear.war"));
    }
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

        return ShrinkWrap
                .create(WebArchive.class, name)
                .addClasses(LogContextHackServlet.class)
                .setManifest(new Asset() {
                    public InputStream openStream() {
                        ManifestBuilder builder = ManifestBuilder.newInstance();
                        builder.addManifestHeader("Dependencies", "org.jboss.logmanager, org.jboss.as.logging");
                        return builder.openStream();
                    }
                });
    }
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

        archive.addClasses(LoggingServlet.class)
                .addAsResource("logging/per-deploy-logging.properties", "jboss-logging.properties");
        archive.setManifest(new Asset() {
            @Override
            public InputStream openStream() {
                ManifestBuilder builder = ManifestBuilder.newInstance();
                StringBuilder dependencies = new StringBuilder();
                builder.addManifestHeader("Dependencies",
                        dependencies.toString());
                builder.addManifestHeader("Logging-Profile", PROFILE_NAME);
                return builder.openStream();
            }
        });
        return archive;
    }
View Full Code Here

Examples of org.jboss.osgi.metadata.ManifestBuilder

        WebArchive war = ShrinkWrap.create(WebArchive.class, "infinispan-resource-ref.war");
        war.addClasses(InfinispanBean.class, InfinispanResourceRefTestCase.class);
        war.addAsWebInfResource(getWebXml(), "web.xml");
        war.add(new Asset() {
            public InputStream openStream() {
                ManifestBuilder builder = ManifestBuilder.newInstance();
                builder.addManifestHeader("Dependencies", "org.infinispan export");
                return builder.openStream();
            }
        }, JarFile.MANIFEST_NAME);
        return war;
    }
View Full Code Here

Examples of org.jboss.osgi.spi.ManifestBuilder

    public static JavaArchive createdeployment() {
        final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "example-bundlecontext");
        archive.setManifest(new Asset() {
            @Override
            public InputStream openStream() {
                ManifestBuilder builder = ManifestBuilder.newInstance();
                builder.addManifestHeader("Dependencies", "org.osgi.core");
                return builder.openStream();
            }
        });
        return archive;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.