Examples of addBinding()


Examples of org.codehaus.xfire.service.Service.addBinding()

            // TODO: We should have a switch for this...
            String ptName = service.getServiceInfo().getPortType().getLocalPart();
            Soap11Binding localBind = new Soap11Binding(new QName(ns, ptName + "LocalBinding"),
                                                        LocalTransport.BINDING_ID,
                                                        service);
            service.addBinding(localBind);
            service.addEndpoint(new QName(ns, ptName + "LocalEndpoint"), localBind, "xfire.local://" + local);
           
            JVar serviceVar = generateService(context, servCls, constructor, service, i);
           
            // Add each endpoint to the Client class
View Full Code Here

Examples of org.drools.lang.descr.PatternDescr.addBinding()

        packageDescr.addRule( queryDescr );
        AndDescr lhs = new AndDescr();
        queryDescr.setLhs( lhs );
        PatternDescr pattern = new PatternDescr( Person.class.getName() );
        lhs.addDescr( pattern );
        pattern.addBinding( new BindingDescr( "$name", "name", true ) );
        pattern.addBinding( new BindingDescr( "$age", "age", true ) );
        pattern.addBinding( new BindingDescr( "$likes", "likes", true ) );

        RuleDescr ruleDescr = new RuleDescr( "rule-1" );
        packageDescr.addRule( ruleDescr );
View Full Code Here

Examples of org.eclipse.jface.bindings.BindingManager.addBinding()

      String schemeId = localChangeManager.getActiveScheme().getId();
      for(KeySequence keySequence : keySequences){
        for (String contextId : CONTEXT_IDS){
          localChangeManager.removeBindings(
              keySequence, schemeId, contextId, null, null, null, Binding.USER);
          localChangeManager.addBinding(new KeyBinding(
                keySequence, null, schemeId, contextId,
                null, null, null, Binding.USER));
        }
      }
      keysDisabled = true;
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.addBinding()

                    AttributeDescriptor intersectionDescriptor = builder.buildDescriptor(
                            this.firstFeatures.features().next().getFeatureType().getName()
                                    .getLocalPart()
                                    + "_" + descriptor.getName(), descriptor.getType());
                    tb.add(intersectionDescriptor);
                    tb.addBinding(descriptor.getType());
                } else {
                    tb.add(descriptor);
                }

            }
View Full Code Here

Examples of org.hornetq.core.postoffice.Bindings.addBinding()

      {
         Address addCheck = new AddressImpl(binding.getAddress());

         if (addCheck.matches(add))
         {
            bindings.addBinding(binding);
         }
      }

      return bindings;
   }
View Full Code Here

Examples of org.hornetq.core.postoffice.impl.BindingsImpl.addBinding()

   private void internalTest(final boolean route) throws Exception
   {
      final FakeBinding fake = new FakeBinding(new SimpleString("a"));

      final BindingsImpl bind = new BindingsImpl(null, null);
      bind.addBinding(fake);
      bind.addBinding(new FakeBinding(new SimpleString("a")));
      bind.addBinding(new FakeBinding(new SimpleString("a")));

      Thread t = new Thread()
      {
View Full Code Here

Examples of org.hornetq.core.postoffice.impl.WildcardAddressManager.addBinding()

   public void testUnitOnWildCardFailingScenario() throws Exception
   {
      int errors = 0;
      WildcardAddressManager ad = new WildcardAddressManager(new BindingFactoryFake());
      ad.addBinding(new BindingFake("jms.topic.Topic1", "jms.topic.Topic1"));
      ad.addBinding(new BindingFake("jms.topic.Topic1", "one"));
      ad.addBinding(new BindingFake("jms.topic.*", "two"));
      ad.removeBinding(SimpleString.toSimpleString("one"), null);
      try
      {
View Full Code Here

Examples of org.jboss.aop.AspectManager.addBinding()

      AspectManager manager = AspectManager.instance();
      PointcutExpression pointcut = new PointcutExpression("TEST", expression);
      manager.addPointcut(pointcut);
      PointcutStats stats = pointcut.getStats();
      AdviceBinding binding = new AdviceBinding(expression, null);
      manager.addBinding(binding);
     
      assertEquals(methodExecution, stats.isMethodExecution());
      assertEquals(methodExecution, BindingClassifier.isMethodExecution(binding));
      assertEquals(methodExecution, BindingClassifier.isMethodExecution(pointcut));
     
View Full Code Here

Examples of org.jboss.aop.InstanceDomain.addBinding()

      {
      PointcutExpression pointcut = new PointcutExpression("pointcut", "execution(* " + POJOWithFinalMethods.class.getName() + "->*(..))");
      domain.addPointcut(pointcut);
      InterceptorFactory[] interceptors = {advice};
      AdviceBinding binding = new AdviceBinding("pojo-binding", pointcut, null, null, interceptors);
      domain.addBinding(binding);
      }

      Class<?> proxyClass = ContainerProxyFactory.getProxyClass(POJOWithFinalMethods.class, domain);
      ClassProxyContainer container = new ClassProxyContainer("test", domain);
      domain.setAdvisor(container);
View Full Code Here

Examples of org.jboss.as.ee.managedbean.component.ManagedBeanComponentDescription.addBinding()

            // Bind the view to its two JNDI locations
            // TODO - this should be a bit more elegant
            final BindingDescription moduleBinding = new BindingDescription("java:module/" + beanName);
            moduleBinding.setBindingType(beanClassName);
            moduleBinding.setReferenceSourceDescription(new ServiceBindingSourceDescription(baseName.append("VIEW").append(beanClassName)));
            componentDescription.addBinding(moduleBinding);
            final BindingDescription appBinding = new BindingDescription("java:app/" + moduleDescription.getModuleName() + "/" + beanName);
            appBinding.setBindingType(beanClassName);
            appBinding.setReferenceSourceDescription(new ServiceBindingSourceDescription(baseName.append("VIEW").append(beanClassName)));
            componentDescription.addBinding(appBinding);
            moduleDescription.addComponent(componentDescription);
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.