Examples of load()


Examples of org.apache.tuscany.sca.implementation.spring.introspect.SpringXMLComponentTypeLoader.load()

        /* Load the Spring component type by reading the Spring application context */
        SpringXMLComponentTypeLoader springLoader =
            new SpringXMLComponentTypeLoader(factories, assemblyFactory, javaFactory, policyFactory);
        try {
            // Load the Spring Implementation information from its application context file...
            springLoader.load(springImplementation, resolver);
        } catch (ContributionReadException e) {
          ContributionResolveException ce = new ContributionResolveException(e);
          error("ContributionResolveException", resolver, ce);
            throw ce;
        }
View Full Code Here

Examples of org.apache.tuscany.sca.implementation.spring.xml.SpringXMLComponentTypeLoader.load()

        /* Load the Spring component type by reading the Spring application context */
        SpringXMLComponentTypeLoader springLoader =
            new SpringXMLComponentTypeLoader(assemblyFactory, javaFactory, policyFactory);
        try {
            // Load the Spring Implementation information from its application context file...
            springLoader.load(springImplementation);
        } catch (ContributionReadException e) {
            throw new ContributionResolveException(e);
        }

        ComponentType ct = springImplementation.getComponentType();
View Full Code Here

Examples of org.apache.tuscany.sdo.api.XMLStreamHelper.load()

            return null;
        }
        try {
            HelperContext helperContext = SDOContextHelper.getHelperContext(context);
            XMLStreamHelper streamHelper = SDOUtil.createXMLStreamHelper(helperContext);
            XMLDocument target = streamHelper.load(source);
            source.close();
            return target;
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

Examples of org.apache.tuscany.sdo.helper.XMLStreamHelper.load()

    public XMLDocument transform(XMLStreamReader source, TransformationContext context) {
        try {
            HelperContext helperContext = SDOContextHelper.getHelperContext(context);
            XMLStreamHelper streamHelper = SDOUtil.createXMLStreamHelper(helperContext.getTypeHelper());
            return streamHelper.load(source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
    }
View Full Code Here

Examples of org.apache.uima.ducc.common.utils.DuccProperties.load()

      if (cps != null) {
          return cps[type];
      }
      DuccProperties props = new DuccProperties();
      try {
          props.load(IDuccEnv.DUCC_CLASSPATH_FILE);
      } catch (Exception e) {
          logger.error("getClasspath", null, "Using full classpath as failed to load " + IDuccEnv.DUCC_CLASSPATH_FILE);
          return System.getProperty("java.class.path");
      }
      // If reload specified don't cache the results (for ease of testing changes to the classpaths)
View Full Code Here

Examples of org.apache.uima.resource.SharedResourceObject.load()

    // SharedResourceObject
    Class<?> sharedResourceObjectClass = mParameterizedResourceImplClassMap.get(aName);
    if (sharedResourceObjectClass != null) {
      try {
        SharedResourceObject sro = (SharedResourceObject) sharedResourceObjectClass.newInstance();
        sro.load(dr);
        mParameterizedResourceInstanceMap.put(nameAndResource, sro);
        return sro;
      } catch (InstantiationException e) {
        throw new ResourceAccessException(e);
      } catch (IllegalAccessException e) {
View Full Code Here

Examples of org.apache.uima.tools.cfe.config.util.ConfigResourceImpl.load()

            ConfigFactoryImpl.init();
            m_init = true;
        }
     
      ConfigResourceImpl resource = (ConfigResourceImpl)(new ConfigResourceFactoryImpl()).createResource(URI.createURI("file://" + filename));
      resource.load(null);
      DocumentRoot documentRoot = (DocumentRoot)resource.getContents().get(0);
      return documentRoot;
    }

    public CFEConfigFromXML_Ecore (String path, boolean manual) throws IOException
View Full Code Here

Examples of org.apache.uima.tools.cfe.config.util.ConfigResourceUtil.load()

    private CFEDescriptorXML m_CFEDescriptor;

    public CFEConfigFromXML_Ecore (String path) throws IOException
    {
        ConfigResourceUtil cru = ConfigResourceUtil.getInstance();
        DocumentRoot r = cru.load("file://" + path);
        m_CFEDescriptor = r.getCFEConfig();
    }


    private static boolean m_init = false;
View Full Code Here

Examples of org.apache.uima.tools.cfe.support.EnumeratedEntryDictionary.load()

    public EnumFeatureValues (String path, boolean case_sensitive) throws IOException
    {
        super(null);
        m_value_transformer = new PrimitiveFeatureTransformer(case_sensitive);
        EnumeratedEntryDictionary fd = new EnumeratedEntryDictionary("enum feature values", path, getValueNormalizer());
        fd.load();
        m_values = fd.values();
    }
   
    public EnumFeatureValues ()
    {
View Full Code Here

Examples of org.apache.uima.util.Settings.load()

      in = new XMLInputSource(JUnitExtension.getFile("TextAnalysisEngineImplTest/AggregateWithExternalOverrides.xml"));
      desc = UIMAFramework.getXMLParser().parseAnalysisEngineDescription(in);
      Map<String,Object> additionalParams = new HashMap<String,Object>();
      Settings extSettings = new Settings_impl();
      FileInputStream fis = new FileInputStream(new File(resDir,"testExternalOverride2.settings"));
      extSettings.load(fis);
      fis.close();
      additionalParams.put(Resource.PARAM_EXTERNAL_OVERRIDE_SETTINGS, extSettings);
      UIMAFramework.produceAnalysisEngine(desc, additionalParams);
      System.clearProperty("UimaExternalOverrides");
     
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.