Examples of bind()


Examples of org.jboss.arquillian.impl.core.ManagerImpl.bind()

         suiteContext.activate();
         classContext.activate(this.getClass());
        
         Object testObject = new Object();
        
         manager.bind(SuiteScoped.class, Object.class, testObject);
        
         Assert.assertEquals(
               "Verify value was bound to the correct context",
               testObject,
               suiteContext.getObjectStore().get(Object.class));
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.Form.bind()

        TextBoxItem userItem = new TextBoxItem("username", "Username");
        PasswordBoxItem passwordItem = new PasswordBoxItem("password", "Password");

        form.setFields(nameItem, enabledItem, jndiItem, driverItem, userItem, passwordItem);
        form.bind(dataSourceTable);
        form.setEnabled(false); // currently not editable

        Widget formWidget = form.asWidget();

        layout.add(new ContentGroupLabel("Details"));
View Full Code Here

Examples of org.jboss.as.messaging.jms.AS7BindingRegistry.bind()

        Object obj = new Object();
        String name = UUID.randomUUID().toString();
        assertNull(getBinderServiceFor(name));

        assertTrue(registry.bind(name, obj));
        assertNotNull(getBinderServiceFor(name));

        registry.unbind(name);
        assertNull(getBinderServiceFor(name));
View Full Code Here

Examples of org.jboss.as.naming.NamingStore.bind()

        try {
            ServiceController<?> controller = context.getController();
            this.controller = controller;
            final Reference reference = ManagedReferenceObjectFactory.createReference(controller.getName());
            final Name name = NameParser.INSTANCE.parse(this.name);
            namingStore.bind(name, reference);
            logger.tracef("Bound resource %s into naming store %s", name, namingStore);
        } catch (NamingException e) {
            throw new StartException("Failed to bind resource into naming store [" + namingStore + "] at location [" + name + "]", e);
        }
    }
View Full Code Here

Examples of org.jboss.byteman.rule.expression.Expression.bind()

        Expression expr;

        expr = ExpressionHelper.createExpression(rule, bindings, exprTree, binding.getType());

        // check bindings
        expr.bind();

        String name = binding.getName();

        if (bindings.lookup(name) != null) {
            // oops rebinding not allowed
View Full Code Here

Examples of org.jboss.ejb3.common.registrar.plugin.mc.Ejb3McRegistrar.bind()

      // Install the BeanAnnotationAdapter w/ callback to add annotation plugins on install
      AddAnnotationPluginOnBeanAnnotationAdaptorCallbackService addCallbacksService = new AddAnnotationPluginOnBeanAnnotationAdaptorCallbackService(
            kernel);
      String addCallbacksServiceBindName = EJB3_MC_NAMESPACE + "AddCallBacksService";
      registrar.bind(addCallbacksServiceBindName, addCallbacksService);

      // Install our annotation plugin, will be picked up in BAA callback
      String annotationPluginBindName = EJB3_MC_NAMESPACE + EjbReferenceAnnotationPlugin.class.getName();
      registrar.bind(annotationPluginBindName, new EjbReferenceAnnotationPlugin(new MockEjbReferenceResolver()));
   }
View Full Code Here

Examples of org.jboss.ejb3.common.registrar.spi.Ejb3Registrar.bind()

      // Install the BeanAnnotationAdapter w/ callback to add annotation plugins on install
      AddAnnotationPluginOnBeanAnnotationAdaptorCallbackService addCallbacksService = new AddAnnotationPluginOnBeanAnnotationAdaptorCallbackService(
            kernel);
      String addCallbacksServiceBindName = EJB3_MC_NAMESPACE + "AddCallBacksService";
      registrar.bind(addCallbacksServiceBindName, addCallbacksService);

      // Install our annotation plugin, will be picked up in BAA callback
      String annotationPluginBindName = EJB3_MC_NAMESPACE + EjbReferenceAnnotationPlugin.class.getName();
      registrar.bind(annotationPluginBindName, new EjbReferenceAnnotationPlugin(new MockEjbReferenceResolver()));
   }
View Full Code Here

Examples of org.jboss.errai.databinding.client.api.DataBinder.bind()

    validatePropertyExpr(property);

    int dotPos = property.indexOf(".");
    if (dotPos > 0) {
      DataBinder nested = createNestedBinder(property);
      nested.bind(widget, property.substring(dotPos + 1), converter);
      Binding binding = new Binding(property, widget, converter, null);
      bindings.put(property, binding);
      return binding;
    }
View Full Code Here

Examples of org.jboss.fresh.registry.RegistryContext.bind()

      }
      n = n.getSuffix(1);
    }

    Object bindInstance = getBindInstance();
    ctx.bind(n.get(0), bindInstance);

    log.info(getName() + ": '" + getJNDIName() + "' bound to '" + m_bindName + "' in registry");
   
    icBind(bindInstance);
    }
View Full Code Here

Examples of org.jboss.fresh.util.TextLayout.bind()

              sb.append(line).append("\r\n");             
          }
      TextLayout tl = new TextLayout("{","}");
      tl.setPattern(sb.toString());
      StringWriter sw = new StringWriter();
      tl.bind(sw, params);
      return new BufferedReader(new StringReader(sw.toString()));
      }
      return job;
  }
   
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.