Package org.jboss.osgi.metadata

Examples of org.jboss.osgi.metadata.ManifestBuilder


                .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
                .addAsWebInfResource(pkg, jobXml, "classes/META-INF/batch-jobs/" + jobXml)
                        // Needed for the DebugLoggingSetup
                .setManifest(new Asset() {
                    public InputStream openStream() {
                        ManifestBuilder builder = ManifestBuilder.newInstance();
                        builder.addManifestHeader("Dependencies", "org.jboss.msc,org.wildfly.security.manager");
                        return builder.openStream();
                    }
                });
    }
View Full Code Here


        "logging2.war");
    archive2.addClasses(LoggingServlet.class);
    archive2.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-profile2");
        return builder.openStream();
      }
    });
    return archive2;
  }
View Full Code Here

    jar.addAsResource(LoggingBean.class.getPackage(),
        "jboss-logging.properties", "META-INF/jboss-logging.properties");
    jar.setManifest(new Asset() {
      @Override
      public InputStream openStream() {
        ManifestBuilder builder = ManifestBuilder.newInstance();
        StringBuffer dependencies = new StringBuffer();
        builder.addManifestHeader("Dependencies",
            dependencies.toString());
        builder.addManifestHeader("Logging-Profile",
            "non-existing-profile");
        return builder.openStream();
      }
    });
    return jar;
  }
View Full Code Here

        final WebArchive war = ShrinkWrap.create(WebArchive.class, "test.war");
        war.addClasses(LoggingServlet.class);
        war.setManifest(new Asset() {
            @Override
            public InputStream openStream() {
                ManifestBuilder builder = ManifestBuilder.newInstance();
                StringBuffer dependencies = new StringBuffer();
                builder.addManifestHeader("Dependencies", dependencies.toString());
                builder.addManifestHeader("Logging-Profile", "syslog-profile");
                return builder.openStream();
            }
        });
        return war;
    }
View Full Code Here

    WebArchive archive = ShrinkWrap.create(WebArchive.class, "logging.war");
    archive.addClasses(LoggingServlet.class);
    archive.setManifest(new Asset() {
      @Override
      public InputStream openStream() {
        ManifestBuilder builder = ManifestBuilder.newInstance();
        StringBuffer dependencies = new StringBuffer();
        builder.addManifestHeader("Dependencies",
            dependencies.toString());
        builder.addManifestHeader("Logging-Profile",
            "non-existing-profile");
        return builder.openStream();
      }
    });
    return archive;
  }
View Full Code Here

        archive.addClass(LifecycleTracker.class);
        archive.addClass(Constants.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

        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

        "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

        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

        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

TOP

Related Classes of org.jboss.osgi.metadata.ManifestBuilder

Copyright © 2018 www.massapicom. 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.