Examples of createObject()


Examples of org.apache.tapestry5.ioc.ObjectCreator.createObject()

        replay();

        ObjectCreator sc = new ServiceBuilderMethodInvoker(resources, CREATOR_DESCRIPTION, findMethod(fixture,
                "buildWithUnorderedConfiguration"));

        Object actual = sc.createObject();

        assertSame(actual, fixture.fie);

        verify();
    }
View Full Code Here

Examples of org.apache.uima.ResourceSpecifierFactory.createObject()

   * @return AEDeploymentMetaData
   */
  static public AEDeploymentMetaData createAEDeploymentMetaData(
          RemoteAEDeploymentMetaData remoteMetaData) {
    ResourceSpecifierFactory factory = UIMAFramework.getResourceSpecifierFactory();
    AEDeploymentMetaData metaData = (AEDeploymentMetaData) factory
            .createObject(AEDeploymentMetaData.class);
    metaData.setParent(remoteMetaData.getParent());
    metaData.setKey(remoteMetaData.getKey());
    try {
      metaData.setResourceSpecifier(remoteMetaData.getResourceSpecifier(), null, false);
View Full Code Here

Examples of org.dmd.dms.util.DmoObjectFactory.createObject()

              if ( (ruleName != null) && (ruleName.equals("dmvIncludeOrExclude")) ){
                DebugInfo.debug("HERE");
              }
             
            ClassDefinition ruleDataCD   = sm.cdef(uco.getConstructionClass());
            RuleDataDMO   dmo     = (RuleDataDMO) dmofactory.createObject(uco);
            RuleDefinition  ruleDEF    = ruleDataCD.getRuleDefinition();

            DynamicInitIF rule = (DynamicInitIF) ruleDEF.newRuleInstance();
            rule.setRuleData(dmo);
           
View Full Code Here

Examples of org.geotools.referencing.factory.OrderedAxisAuthorityFactory.createObject()

     */
    public void test26910() throws FactoryException {
        final CRSAuthorityFactory factory = new OrderedAxisAuthorityFactory("EPSG", null, null);
        final CoordinateReferenceSystem crs = factory.createCoordinateReferenceSystem("EPSG:26910");
        assertNotNull(crs);
        assertSame(crs, factory.createObject("EPSG:26910"));
    }

    /**
     * UDIG requires this to work.
     */
 
View Full Code Here

Examples of org.jboss.managed.spi.factory.ManagedObjectPopulator.createObject()

/* 139 */     if (clazz == null) {
/* 140 */       throw new IllegalArgumentException("Null class");
/*     */     }
/* 142 */     ManagedObject result = createSkeletonManagedObject(clazz);
/* 143 */     ManagedObjectPopulator populator = getPopulator(clazz);
/* 144 */     populator.createObject(result, clazz);
/*     */
/* 146 */     return result;
/*     */   }
/*     */
/*     */   public ManagedObject initManagedObject(Serializable object, String name, String nameType)
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactory.createObject()

    MockControl beanFactoryControl = MockControl.createNiceControl(BeanFactory.class);
    BeanFactory beanFactory = (BeanFactory) beanFactoryControl.getMock();

    JbpmContext context = new JbpmContext(null, mockFactory);
    factoryControl.expectAndReturn(mockFactory.createObject(JbpmContext.DEFAULT_JBPM_CONTEXT_NAME), context, 3);
    beanFactoryControl.replay();
    factoryControl.replay();

    // configuration.setBeanFactory(beanFactory);
    configuration.afterPropertiesSet();
View Full Code Here

Examples of org.jbpm.configuration.ObjectFactory.createObject()

    // configuration.setUseSpringObjectFactory(false);

    MockControl factoryControl = MockControl.createControl(ObjectFactory.class);
    ObjectFactory mockFactory = (ObjectFactory) factoryControl.getMock();

    factoryControl.expectAndReturn(mockFactory.createObject(JbpmContext.DEFAULT_JBPM_CONTEXT_NAME),
        new JbpmContext(null, mockFactory), 2);
    factoryControl.replay();
    configuration.setObjectFactory(mockFactory);
    configuration.afterPropertiesSet();
View Full Code Here

Examples of org.opengis.referencing.crs.CRSAuthorityFactory.createObject()

        if (code == null)
            return null;
        for( Object object : ReferencingFactoryFinder.getCRSAuthorityFactories(null) ) {
            CRSAuthorityFactory factory = (CRSAuthorityFactory) object;
            try {
                return (CoordinateReferenceSystem) factory.createObject(code);
            } catch (FactoryException e2) {
                // then we have the wrong factory
                // is there a better way to do this?
            }catch (Exception e) {
                UiPlugin.log("Error creating CRS object, trying more...", e);
View Full Code Here

Examples of org.pdfbox.cos.COSDocument.createObject()

            COSArray pagesArray = new COSArray();

            // a page
            COSDictionary page = new COSDictionary();
            page.setItem(COSName.TYPE, COSName.PAGE);
            page.setItem(COSName.PARENT, doc.createObject(pages));
            COSArray mediaBox = new COSArray();
            mediaBox.add( new COSInteger(0));
            mediaBox.add( new COSInteger(0));
            mediaBox.add( new COSInteger(612));
            mediaBox.add( new COSInteger(792));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectDescription.createObject()

      {
        return null;
      }
    }
    od.setParameter("value", value);
    return od.createObject();
  }

  /**
   * Loads all public static stylekeys which are declared in the given class.
   *
 
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.