Examples of Instance


Examples of javax.enterprise.inject.Instance

    }
  }

  @SuppressWarnings({ "rawtypes", "unchecked" })
  public <T> Instance<T> findOne(Class<? extends T> implementationClass, AnnotationLiteral<?>... qualifiers) {
    Instance possibleConfigurations = CDI.current().select(implementationClass, qualifiers);
    return possibleConfigurations;
  }
View Full Code Here

Examples of kodkod.instance.Instance

   * Creates an instance from the given Bounds.  The instance
   * is simply the mapping bounds.lowerBound.
   * @return the instance corresponding to bounds.lowerBound
   */
  private static Instance toInstance(Bounds bounds) {
    final Instance instance = new Instance(bounds.universe());
    for (Relation r : bounds.relations()) {
      instance.add(r, bounds.lowerBound(r));
    }
    for (IntIterator iter = bounds.ints().iterator(); iter.hasNext();) {
      int i = iter.next();
      instance.add(i, bounds.exactBound(i));
    }
    return instance;
  }
View Full Code Here

Examples of net.sf.javaml.core.Instance

     */
    @Override
    public String classify(double[] item) {
       
        //initialize Instance from double array
        Instance testInstance = new DenseInstance(item);
       
        //classifiy testInstance
        Object classOfTestInstance = jmlClassifier.classify(testInstance);
       
        return (String) classOfTestInstance;
View Full Code Here

Examples of nexj.core.runtime.Instance

      {
         Object obj = instance.getValueDirect(m_objectAttribute.getOrdinal());

         if (obj instanceof Instance)
         {
            Instance inst = (Instance)obj;

            if (inst.getState() != Instance.DELETED || m_bSerializingDeleted)
            {
               if (instance.isDirty(m_objectAttribute.getOrdinal()))
               {
                  if (m_oidAttribute != null)
                  {
View Full Code Here

Examples of no.hal.jex.jextest.jexTest.Instance

   * <!-- end-user-doc -->
   * @generated
   */
  public void setInstance(Instance newInstance)
  {
    Instance oldInstance = instance;
    instance = newInstance;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, JexTestPackage.OBJECT_TEST__INSTANCE, oldInstance, instance));
  }
View Full Code Here

Examples of org.apache.accumulo.core.client.Instance

    bw.close();
  }
 
  @Test
  public void test() throws Exception {
    Instance instance = new MockInstance();
    Connector connector = instance.getConnector("root", new PasswordToken(""));
    BatchWriter bw = connector.createBatchWriter("!METADATA", new BatchWriterConfig());
   
    // Create a fake METADATA table with these splits
    String splits[] = {"a", "e", "j", "o", "t", "z"};
    // create metadata for a table "t" with the splits above
View Full Code Here

Examples of org.apache.agila.engine.Instance

            businessProcess );

        Map appParams = new HashMap();
        appParams.put( "numdays", "40" );
        appParams.put( "reason", "Expedition to Mount Everest" );
        Instance instance = dao.newInstance( businessProcessID, appParams );
        assertNotNull( "Instance should not be null", instance );
    }
View Full Code Here

Examples of org.apache.ambari.server.controller.ivory.Instance


  // ----- helper methods -----------------------------------------------------

  protected static Instance getInstance(String feedName, String instanceId, Map<String, Object> propertyMap) {
    return new Instance(
        feedName,
        instanceId,
        (String) propertyMap.get(INSTANCE_STATUS_PROPERTY_ID),
        (String) propertyMap.get(INSTANCE_START_TIME_PROPERTY_ID),
        (String) propertyMap.get(INSTANCE_END_TIME_PROPERTY_ID),
View Full Code Here

Examples of org.apache.cocoon.precept.Instance

  public Map introspection(Redirector redirector, SourceResolver resolver, Map objectModel, String src, Parameters par) throws Exception {
    getLogger().debug("start of flow");

    Session session = createSession(objectModel);
    Instance instance = createInstance("feedback");

    session.setAttribute("form-feedback",instance);
    return(page(VIEW1));
  }
View Full Code Here

Examples of org.apache.deltacloud.client.Instance

    this.testInstance = createTestInstance(image);
  }

  private Instance createTestInstance(Image image) throws DeltaCloudClientException {
    assertNotNull(image);
    Instance instance = client.createInstance(image.getId());
    return instance;
  }
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.