Examples of merge()


Examples of org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData.merge()

      method = merged.getTimeoutMethod();
      assertNotNull(method);
      assertTrue(original.getTimeoutMethod() == method);
     
      merged = new JBossMessageDrivenBeanMetaData();
      merged.merge(override, original);
      method = merged.getTimeoutMethod();
      assertNotNull(method);
      assertTrue(override.getTimeoutMethod() == method);
   }
  
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossMetaData.merge()

   }

   public void deploy(DeploymentUnit unit, EjbJarMetaData deployment) throws DeploymentException
   {
      JBossMetaData jbmd = new JBossMetaData();
      jbmd.merge(null, deployment);
      unit.addAttachment(JBossMetaData.class, jbmd);
   }
}
View Full Code Here

Examples of org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData.merge()

      JBossSessionBeanMetaData original = new JBossSessionBeanMetaData();
      original.setBusinessLocals(originalBusinessLocal);
     
      // Merged
      JBossSessionBeanMetaData merged = new JBossSessionBeanMetaData();
      merged.merge(override, original);
      BusinessLocalsMetaData businessLocals = merged.getBusinessLocals();
      assertNotNull(businessLocals);
      assertEquals(3, businessLocals.size());
      assertTrue(businessLocals.contains("override1"));
      assertTrue(businessLocals.contains("override2"));
View Full Code Here

Examples of org.jboss.metadata.ejb.spec.InterceptorsMetaData.merge()

      // create interceptors metadata from the interceptor classes
      InterceptorsMetaData annotatedInterceptorsMetaData = interceptorMetaDataCreator.create(interceptorClasses);

      InterceptorsMetaData mergedInterceptorsMetaData = new InterceptorsMetaData();
      // merge the interceptors metadata
      mergedInterceptorsMetaData.merge(mergedMetaData.getInterceptors(), annotatedInterceptorsMetaData);

      // now set the merged interceptors metadata into the merged jboss metadata
      mergedMetaData.setInterceptors(mergedInterceptorsMetaData);
     
      // Output the merged JBossMetaData
View Full Code Here

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

      original.setEjbRefName("crucialEjb");
      EJBLocalReferenceMetaData override = new EJBLocalReferenceMetaData();
      override.setLocal("CrucialLocal");

      EJBLocalReferenceMetaData merged = new EJBLocalReferenceMetaData();
      merged.merge(override, original);
      assertEquals("crucialEjb", merged.getEjbRefName());
      assertEquals("CrucialLocal", merged.getLocal());
   }

   public void testHomeJndiNameForEJB3() throws Exception
View Full Code Here

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

     
      //Env
      EnvironmentRefsGroupMetaData environmentRefsGroup = new EnvironmentRefsGroupMetaData();
      Environment xmlEnv = xml != null ? xml.getJndiEnvironmentRefsGroup() : null;
      Environment annEnv = annotation != null ? annotation.getJndiEnvironmentRefsGroup() : null;
      environmentRefsGroup.merge(xmlEnv,annEnv, "", "", false);
      merged.setJndiEnvironmentRefsGroup(environmentRefsGroup);
     
      //Message Destinations
      MessageDestinationsMetaData messageDestinations = new MessageDestinationsMetaData();
      messageDestinations.merge(xml.getMessageDestinations(), annotation.getMessageDestinations());
View Full Code Here

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

            if(msgRefs.contains(ref) == false)
               msgRefs.add(ref);
            else
            {
               MessageDestinationReferenceMetaData existingRef = msgRefs.get(ref.getMessageDestinationRefName());
               existingRef.merge(null, ref);
            }
         }

         // Merge the spec resource-env-refs
         if(resEnvRefs != null && specEnvRefs != null)
View Full Code Here

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

      environmentRefsGroup.merge(xmlEnv,annEnv, "", "", false);
      merged.setJndiEnvironmentRefsGroup(environmentRefsGroup);
     
      //Message Destinations
      MessageDestinationsMetaData messageDestinations = new MessageDestinationsMetaData();
      messageDestinations.merge(xml.getMessageDestinations(), annotation.getMessageDestinations());
      merged.setMessageDestinations(messageDestinations);
     
      //merge annotation
      mergeIn(merged,annotation);
      //merge xml override
View Full Code Here

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

               jadmd.setSecurityRoles(earSecurityRolesMetaData);
           
            //perform a merge to rebuild the principalVersusRolesMap
            if(mergedSecurityRolesMetaData != null )
            {
                mergedSecurityRolesMetaData.merge(mergedSecurityRolesMetaData,
                     earSecurityRolesMetaData);
            }
        }
      }
View Full Code Here

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

      // Merge if there are already handlerChains
      if (refs.getHandlerChains() != null)
      {
         ServiceReferenceHandlerChainsMetaData merged = new ServiceReferenceHandlerChainsMetaData();
         merged.merge(handlerChains, refs.getHandlerChains());
         refs.setHandlerChains(merged);
      }
      else
      {
         refs.setHandlerChains(handlerChains);
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.