Examples of addPackages()


Examples of org.exolab.castor.xml.XMLContext.addPackages()

    }
    if (!ObjectUtils.isEmpty(targetClasses)) {
      context.addClasses(targetClasses);
    }
    if (!ObjectUtils.isEmpty(targetPackages)) {
      context.addPackages(targetPackages);
    }
    return context;
  }

  /**
 
View Full Code Here

Examples of org.exolab.castor.xml.XMLContext.addPackages()

            xmlMap.loadMapping(resolver.loadResourceAsURL(getMappingFile()));
            xmlContext.addMapping(xmlMap);
        }

        if (getPackages() != null) {
            xmlContext.addPackages(getPackages());
        }
        if (getClassNames() != null) {
            for (String name : getClassNames()) {
                Class<?> clazz = resolver.resolveClass(name);
                xmlContext.addClass(clazz);
View Full Code Here

Examples of org.exolab.castor.xml.XMLContext.addPackages()

    }
    if (!ObjectUtils.isEmpty(targetClasses)) {
      context.addClasses(targetClasses);
    }
    if (!ObjectUtils.isEmpty(targetPackages)) {
      context.addPackages(targetPackages);
    }
    if (this.castorProperties != null) {
      for (Map.Entry<String, String> property : this.castorProperties.entrySet()) {
        context.setProperty(property.getKey(), property.getValue());
      }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()

                        .addServiceProvider(
                              TestRunner.class,
                              JUnitTestRunner.class);
      try
      {
         archive.addPackages(
               true,
               Package.getPackage("junit.framework"));
      }
      catch (Exception e)
      {
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()

        Collection<JavaArchive> deps = Arrays.asList(Maven.resolver().loadPomFromFile("pom.xml")
            .resolve(thirdPartyDeps).withTransitivity().as(JavaArchive.class));

        //we need to pull in the naming hack classes from the server jar so that our EAR behaves the same
        testEjb.addPackages(true, "org.rhq.enterprise.server.naming").addClass(
            AllowRhqServerInternalsAccessPermission.class);

        //we also need to pull in the special startup beans from the server/itests-2 that will initialize the naming
        //subsystem
        testEjb.addClasses(StrippedDownStartupBean.class, StrippedDownStartupBeanPreparation.class);
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()

                        .addServiceProvider(
                              TestRunner.class,
                              JUnitTestRunner.class);
      try
      {
         archive.addPackages(
               true,
               Package.getPackage("junit.framework"));
      }
      catch (Exception e)
      {
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()

    @Override
    public Archive<?> createAuxiliaryArchive() {
        JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "arquillian-testenricher-osgi.jar");
        archive.addAsServiceProvider(LoadableExtension.class, OSGiEnricherExtension.class);
        archive.addPackages(false, OSGiTestEnricher.class.getPackage(), StartLevelAware.class.getPackage());
        return archive;
    }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()

         PortletUtilsTestCase.class,
         StringCodec.class,
         StringCodecTestCase.class,
         TestPortletApplicationDeployer.class
      );
      classes.addPackages(
         true,
         "org.gatein.pc.test.bootstrap",
         "org.gatein.pc.test.controller",
         "org.gatein.pc.test.portlet.framework",
         "org.gatein.pc.test.tck",
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()

                        .addServiceProvider(
                              TestRunner.class,
                              JUnitTestRunner.class);
      try
      {
         archive.addPackages(
               true,
               Package.getPackage("junit.framework"));
      }
      catch (Exception e)
      {
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()

    @Override
    public Archive<?> createAuxiliaryArchive() {
        JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "arquillian-testenricher-osgi.jar");
        archive.addAsServiceProvider(RemoteLoadableExtension.class, OSGiEnricherRemoteExtension.class);
        archive.addPackages(false, OSGiTestEnricher.class.getPackage(), StartLevelAware.class.getPackage());
        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.