Examples of Binding


Examples of org.jboss.ejb3.singleton.deployer.jndi.Binding

            // bind to jndi

            String jndiName = jndiNameResolver.resolveJNDIName(sessionBean, businessRemote);

            Binding binding = new Binding(jndiName, proxy, "EJB3.x Remote Business Interface");
            bindings.add(binding);

         }
         catch (ClassNotFoundException cnfe)
         {
            throw new RuntimeException("Could not load business remote interface " + businessRemote, cnfe);
         }

      }

      // time to create a proxy
      List<RemoteBindingMetaData> remoteBindings = sessionBean.getRemoteBindings();
      if (remoteBindings == null || remoteBindings.isEmpty())
      {

         InvocationHandler invocationHandler = new SingletonBeanRemoteInvocationHandler(containerRegistryKey, containerGUID,
               defaultInvokerLocatorURL, clientInterceptors);
         String defaultRemoteJNDIName = jndiNameResolver.resolveRemoteBusinessDefaultJNDIName(sessionBean);
         Object proxy = proxyFactory.createProxy(allRemoteinterfaces.toArray(new Class<?>[allRemoteinterfaces.size()]),
               invocationHandler);
         Binding binding = new Binding(defaultRemoteJNDIName, proxy, "EJB3.x Default Remote Business Interface");
         bindings.add(binding);

      }
      else
      {
         for (RemoteBindingMetaData remoteBinding : remoteBindings)
         {
            String jndiName = remoteBinding.getJndiName();
            // if not explicitly specified, then use the default jndi name
            if (jndiName == null)
            {
               jndiName = jndiNameResolver.resolveRemoteBusinessDefaultJNDIName(sessionBean);
            }
            String invokerLocatorURL = getClientBindURL(remoteBinding);
            InvocationHandler invocationHandler = new SingletonBeanRemoteInvocationHandler(containerRegistryKey, containerGUID,
                  invokerLocatorURL, clientInterceptors);
            Object proxy = proxyFactory.createProxy(allRemoteinterfaces
                  .toArray(new Class<?>[allRemoteinterfaces.size()]), invocationHandler);
            Binding binding = new Binding(jndiName, proxy, "EJB3.x Default Remote Business Interface");
            bindings.add(binding);
         }

      }
      return bindings;
View Full Code Here

Examples of org.jboss.errai.databinding.client.Binding

    if (!(proxy instanceof BindableProxy<?>)) {
      proxy = BindableProxyFactory.getBindableProxy(Assert.notNull(proxy), initialState);
    }

    Binding binding = getAgent().bind(widget, property, converter);
    bindings.put(property, binding);
    return this;
  }
View Full Code Here

Examples of org.jboss.messaging.core.contract.Binding

      }
   }

   public Binding removeBinding(String queueName, boolean allNodes) throws Throwable
   {
     Binding binding = internalRemoveBinding(queueName, allNodes, true);
    
     if (binding != null && allNodes && clustered && binding.queue.isClustered())
     {
       //Now we must wait for all the bindings to be removed from state
       //This is necessary since the second unbind in an all unbind is sent asynchronously to avoid deadlock
View Full Code Here

Examples of org.jboss.messaging.core.plugin.postoffice.Binding

            Map.Entry entry = (Map.Entry)iter.next();
           
            String queueName = (String)entry.getKey();
           
            //Look up channel
            Binding binding = postOffice.getBindingForQueueName(queueName);
           
            if (binding == null)
            {
               throw new IllegalStateException("Cannot find channel with queue name: " + queueName);
            }
           
            List acks = (List)entry.getValue();
           
            List ids = new ArrayList(acks.size());
           
            for (Iterator iter2 = acks.iterator(); iter2.hasNext(); )
            {
               DeliveryRecovery info = (DeliveryRecovery)iter2.next();
              
               ids.add(new Long(info.getMessageID()));
            }
           
            Queue queue = binding.getQueue();
           
            JMSCondition cond = (JMSCondition)binding.getCondition();                       
           
            ManagedDestination dest =
               sp.getDestinationManager().getDestination(cond.getName(), cond.isQueue());
           
            if (dest == null)
View Full Code Here

Examples of org.jboss.test.xml.jbxb.characters.Binding

   public void testMainUnmarshalling() throws Exception
   {
      String res = getPath("xml/jbxb/characters/testSchema1.xml").getFile();
      FileReader xmlReader = new FileReader(res);

      Binding binding = unmarshal(xmlReader);

      assertEquals("Binding.name = root ", "root", binding.getName());
      assertEquals("Binding.text = value1 ", "value1", binding.getText());
   }
View Full Code Here

Examples of org.jbpm.pvm.internal.xml.Binding

    for (Element bindingElement : elements) {
      String bindingClassName = XmlUtil.attribute(bindingElement, "class");
     
      log.trace("adding wire binding for "+bindingClassName);

      Binding binding = null;
      if (bindingClassName!=null) {
        try {
          Class<?> bindingClass = ReflectUtil.loadClass(classLoader, bindingClassName);
          binding = (Binding) bindingClass.newInstance();
        } catch (Exception e) {
View Full Code Here

Examples of org.jbpm.xml.Binding

        if (tagName==null) {
          parse.addProblem("tag is a required attribute in a binding "+XmlUtil.toString(bindingElement));
        }

        Binding binding = null;
        if (bindingClassName!=null) {
          try {
            Class<?> bindingClass = getClassLoader().loadClass(bindingClassName);
            binding = (Binding) bindingClass.newInstance();
          } catch (Exception e) {
View Full Code Here

Examples of org.jdesktop.beansbinding.Binding

*/
public class LabelHandler {
   
    public void add(JLabel label, JComponent component) {
        label.setLabelFor(component);
        Binding binding =  Bindings.createAutoBinding(UpdateStrategy.READ_WRITE,
                component, BeanProperty.create("enabled"),
                label, BeanProperty.create("enabled"));
        binding.bind();
    }
View Full Code Here

Examples of org.jitterbit.ui.property.Binding

        c.setBorder(Empty.border(0, 0, 12, 0));
        setMainPanel(c);
    }

    private void installWaitIndication() {
        Binding b = new WaitStateBinding(model.<Boolean>getProperty(StructureFileSelectionModel.BUSY), getWaitService());
        b.syncUi();
    }
View Full Code Here

Examples of org.jruby.runtime.Binding

    public static RubyBinding newBinding(Ruby runtime) {
        ThreadContext context = runtime.getCurrentContext();
       
        // FIXME: We should be cloning, not reusing: frame, scope, dynvars, and potentially iter/block info
        Frame frame = context.getCurrentFrame();
        Binding binding = new Binding(frame, context.getImmediateBindingRubyClass(), context.getCurrentScope());
       
        return new RubyBinding(runtime, runtime.getBinding(), binding);
    }
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.