Examples of merge()


Examples of org.jboss.metadata.javaee.spec.ServiceReferenceMetaData.merge()

            ServiceReferenceMetaData jbossServiceRef = null;
            if(override != null)
               jbossServiceRef = override.get(serviceRef.getServiceRefName());
            if(jbossServiceRef == null)
               jbossServiceRef = new JBossServiceReferenceMetaData();
            jbossServiceRef = jbossServiceRef.merge(serviceRef);
            merged.add(jbossServiceRef);
         }
      }
     
      if(override != null)
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBoss50WebMetaData.merge()

      if (webXml == null)
         throw new IllegalStateException("Unable to find: "+name);
      SchemaBinding schema = JBossXBBuilder.build(clazz);
      WebMetaData confWebMD = (WebMetaData) unmarshaller.unmarshal(webXml.toString(), schema);
      JBoss50WebMetaData sharedMetaData = new JBoss50WebMetaData();
      sharedMetaData.merge(null, confWebMD);

      return sharedMetaData;
   }
}
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBoss60WebMetaData.merge()

      }

      if (sharedWebMetaData != null || sharedJBossWebMetaData != null)
      {
         JBossWebMetaData clone = new JBoss60WebMetaData();
         clone.merge(sharedJBossWebMetaData, sharedWebMetaData);
         unit.addAttachment(SHARED_JBOSSWEB_ATTACHMENT_NAME, clone);
      }
  }
  
}
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData.merge()

      ClassLoader cl = Thread.currentThread().getContextClassLoader();
      URL webxml = cl.getResource("security/jacc/webperm/web.xml");
      assertNotNull("web.xml exists?", webxml);
      WebMetaData wmd = getWebMetaData(webxml.openStream());
      JBossWebMetaData jwmd = new JBossWebMetaData();
      jwmd.merge(null, wmd);
      TestJBossPolicyConfiguration tpc = new TestJBossPolicyConfiguration("dummy");
      WebPermissionMapping.createPermissions(jwmd, tpc);
      checkUncheckedPermissions(tpc.getUncheckedPolicy());
      checkExcludedPermissions(tpc.getExcludedPolicy());
      checkAddToRoleForAdministrator(tpc.getPermissionsForRole("Administrator"));
View Full Code Here

Examples of org.jboss.metamodel.descriptor.MessageDestinationRef.merge()

   public void mergeMessageDestinationRef(MessageDestinationRef ref)
   {
      MessageDestinationRef tmpRef = (MessageDestinationRef)messageDestinationRefs.get(ref.getMessageDestinationRefName());
      if (tmpRef != null)
         tmpRef.merge(ref);
   }

   public void mergeResourceRef(ResourceRef ref)
   {
      ResourceRef tmpRef = (ResourceRef)resourceRefs.get(ref.getResRefName());
View Full Code Here

Examples of org.jboss.metamodel.descriptor.ResourceEnvRef.merge()

   public void mergeResourceEnvRef(ResourceEnvRef ref)
   {
      ResourceEnvRef tmpRef = (ResourceEnvRef)resourceEnvRefs.get(ref.getResRefName());
      if (tmpRef != null)
         tmpRef.merge(ref);
   }

   public void setMethodAttributes(MethodAttributes methodAttributes)
   {
      this.methodAttributes = methodAttributes;
View Full Code Here

Examples of org.jboss.metamodel.descriptor.ResourceRef.merge()

   public void mergeResourceRef(ResourceRef ref)
   {
      ResourceRef tmpRef = (ResourceRef)resourceRefs.get(ref.getResRefName());
      if (tmpRef != null)
         tmpRef.merge(ref);
   }

   public void mergeResourceEnvRef(ResourceEnvRef ref)
   {
      ResourceEnvRef tmpRef = (ResourceEnvRef)resourceEnvRefs.get(ref.getResRefName());
View Full Code Here

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

        }
    }

    private void addCurrentProjectClasses() {
        JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "richfaces-a4j.jar");
        jar.merge(ShrinkWrap.create(GenericArchive.class).as(ExplodedImporter.class)
            .importDirectory("target/classes/").as(GenericArchive.class),
            "/", Filters.includeAll());
        archive().addAsLibrary(jar);
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.WebArchive.merge()

            } else {
                log.info(String.format("Found %s module in web archive %s", module, war.getName()));
            }

            WebArchive copy = ShrinkWrap.create(WebArchive.class, war.getName());
            copy.merge(war);
            copy.addAsLibraries(libs);
            export(copy, root);
        } catch (Exception e) {
            throw new IllegalStateException(e);
        }
View Full Code Here

Examples of org.jboss.tutorial.callback.bean.CustomerDAO.merge()

      int moId = dao.create("Monica", "Smith", "1 Boston Road", "Boston", "MA", "02115");

      System.out.println("Bill and Monica get married");
      Customer monica = dao.find(moId);
      monica.setLast("Burke");
      dao.merge(monica);

      System.out.println("Get all the Burkes");
      List burkes = dao.findByLastName("Burke");
      System.out.println("There are now " + burkes.size() + " Burkes");
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.