Examples of saveConfig()


Examples of org.jboss.forge.addon.javaee.cdi.CDIFacet_1_0.saveConfig()

   {
      Project project = projectHelper.createJavaLibraryProject();
      CDIFacet_1_0 cdiFacet = projectHelper.installCDI_1_0(project);
      org.jboss.shrinkwrap.descriptor.api.beans10.BeansDescriptor config = cdiFacet.getConfig();
      config.getOrCreateDecorators().clazz("org.myclazz.MyDecorator");
      cdiFacet.saveConfig(config);

      shellTest.execute("cd " + project.getRoot().getFullyQualifiedName(), 10, TimeUnit.SECONDS);
      shellTest.execute("cdi-list-decorators", 10, TimeUnit.SECONDS);
      Assert.assertThat(shellTest.getStdOut(), CoreMatchers.containsString("org.myclazz.MyDecorator"));
   }
View Full Code Here

Examples of org.jboss.forge.addon.javaee.cdi.CDIFacet_1_0.saveConfig()

   {
      Project project = projectHelper.createJavaLibraryProject();
      CDIFacet_1_0 cdiFacet = projectHelper.installCDI_1_0(project);
      org.jboss.shrinkwrap.descriptor.api.beans10.BeansDescriptor config = cdiFacet.getConfig();
      config.getOrCreateInterceptors().clazz("org.myclazz.MyInterceptor");
      cdiFacet.saveConfig(config);

      shellTest.execute("cd " + project.getRoot().getFullyQualifiedName(), 10, TimeUnit.SECONDS);
      shellTest.execute("cdi-list-interceptors", 10, TimeUnit.SECONDS);
      Assert.assertThat(shellTest.getStdOut(), CoreMatchers.containsString("org.myclazz.MyInterceptor"));
   }
View Full Code Here

Examples of org.jboss.forge.addon.javaee.cdi.CDIFacet_1_1.saveConfig()

   {
      Project project = projectHelper.createJavaLibraryProject();
      CDIFacet_1_1 cdiFacet = projectHelper.installCDI_1_1(project);
      org.jboss.shrinkwrap.descriptor.api.beans11.BeansDescriptor config = cdiFacet.getConfig();
      config.getOrCreateAlternatives().clazz("org.myclazz.MyAlternative");
      cdiFacet.saveConfig(config);

      shellTest.execute("cd " + project.getRoot().getFullyQualifiedName(), 10, TimeUnit.SECONDS);
      shellTest.execute("cdi-list-alternatives", 10, TimeUnit.SECONDS);
      Assert.assertThat(shellTest.getStdOut(), CoreMatchers.containsString("org.myclazz.MyAlternative"));
   }
View Full Code Here

Examples of org.jboss.forge.addon.javaee.cdi.CDIFacet_1_1.saveConfig()

   {
      Project project = projectHelper.createJavaLibraryProject();
      CDIFacet_1_1 cdiFacet = projectHelper.installCDI_1_1(project);
      org.jboss.shrinkwrap.descriptor.api.beans11.BeansDescriptor config = cdiFacet.getConfig();
      config.getOrCreateDecorators().clazz("org.myclazz.MyDecorator");
      cdiFacet.saveConfig(config);

      shellTest.execute("cd " + project.getRoot().getFullyQualifiedName(), 10, TimeUnit.SECONDS);
      shellTest.execute("cdi-list-decorators", 10, TimeUnit.SECONDS);
      Assert.assertThat(shellTest.getStdOut(), CoreMatchers.containsString("org.myclazz.MyDecorator"));
   }
View Full Code Here

Examples of org.jboss.forge.addon.javaee.cdi.CDIFacet_1_1.saveConfig()

   {
      Project project = projectHelper.createJavaLibraryProject();
      CDIFacet_1_1 cdiFacet = projectHelper.installCDI_1_1(project);
      org.jboss.shrinkwrap.descriptor.api.beans11.BeansDescriptor config = cdiFacet.getConfig();
      config.getOrCreateInterceptors().clazz("org.myclazz.MyInterceptor");
      cdiFacet.saveConfig(config);

      shellTest.execute("cd " + project.getRoot().getFullyQualifiedName(), 10, TimeUnit.SECONDS);
      shellTest.execute("cdi-list-interceptors", 10, TimeUnit.SECONDS);
      Assert.assertThat(shellTest.getStdOut(), CoreMatchers.containsString("org.myclazz.MyInterceptor"));
   }
View Full Code Here

Examples of org.jboss.forge.addon.javaee.facets.PersistenceFacet.saveConfig()

                  : PersistenceUnitTransactionType._RESOURCE_LOCAL);
         unit.provider(provider.getProvider());

         container.setupConnection(unit, dataSource);
         provider.configure(unit, dataSource);
         facet.saveConfig(config);
         result = facet.getConfigFile();
      }
      if (configureMetadata)
      {
         facetFactory.install(project, PersistenceMetaModelFacet.class);
View Full Code Here

Examples of org.jboss.forge.addon.javaee.servlet.ServletFacet.saveConfig()

         if (!found)
         {
            servletConfig.createContextParam()
                     .paramName("javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE").paramValue("true");
         }
         servlet.saveConfig(servletConfig);
      }
      else if (servlet instanceof ServletFacet_3_1)
      {
         org.jboss.shrinkwrap.descriptor.api.webapp31.WebAppDescriptor servletConfig = (org.jboss.shrinkwrap.descriptor.api.webapp31.WebAppDescriptor) servlet
                  .getConfig();
View Full Code Here

Examples of org.jboss.forge.addon.javaee.servlet.ServletFacet.saveConfig()

         if (!found)
         {
            servletConfig.createContextParam()
                     .paramName("javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE").paramValue("true");
         }
         servlet.saveConfig(servletConfig);
      }
   }

   private void removeConflictingErrorPages(Node root)
   {
View Full Code Here

Examples of org.jboss.forge.addon.javaee.servlet.ServletFacet.saveConfig()

      ServletFacet servlet = this.project.getFacet(ServletFacet.class);
      if (servlet instanceof ServletFacet_3_0)
      {
         WebAppDescriptor servletConfig = (WebAppDescriptor) servlet.getConfig();
         servletConfig.getOrCreateWelcomeFileList().welcomeFile(indexFileEntry);
         servlet.saveConfig(servletConfig);
      }
      else if (servlet instanceof ServletFacet_3_1)
      {
         org.jboss.shrinkwrap.descriptor.api.webapp31.WebAppDescriptor servletConfig = (org.jboss.shrinkwrap.descriptor.api.webapp31.WebAppDescriptor) servlet
                  .getConfig();
View Full Code Here

Examples of org.jboss.forge.addon.javaee.servlet.ServletFacet.saveConfig()

      else if (servlet instanceof ServletFacet_3_1)
      {
         org.jboss.shrinkwrap.descriptor.api.webapp31.WebAppDescriptor servletConfig = (org.jboss.shrinkwrap.descriptor.api.webapp31.WebAppDescriptor) servlet
                  .getConfig();
         servletConfig.getOrCreateWelcomeFileList().welcomeFile(indexFileEntry);
         servlet.saveConfig(servletConfig);
      }
      return;
   }

   /**
 
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.