Examples of load()


Examples of org.apache.xbean.server.spring.loader.SpringLoader.load()

            springLoader.setKernel(kernel);
            springLoader.setBaseDir(new File(serviceUnitRootPath));
            springLoader.setXmlPreprocessors(getXmlPreProcessors(serviceUnitRootPath));
            springLoader.setBeanFactoryPostProcessors(getBeanFactoryPostProcessors(serviceUnitRootPath));
           
            ServiceName configurationName = springLoader.load(getXBeanFile());
            kernel.startService(configurationName);
            su.setConfiguration(configurationName);
            // Use SU classloader
            Thread.currentThread().setContextClassLoader(su.getConfigurationClassLoader());
            // Retrieve endpoints
View Full Code Here

Examples of org.apache.xerces.impl.xs.XMLSchemaLoader.load()

        schemaLoader.setEntityResolver(cr);

        LoggingXmlErrorHandler eh = new LoggingXmlErrorHandler(__log);
        schemaLoader.setErrorHandler(eh);

        XSModel model = schemaLoader.load(input);

        // The following mess is due to XMLSchemaLoaders funkyness in error
        // reporting: sometimes it throws an exception, sometime it returns
        // null, sometimes it just prints bs to the screen.
        if (model == null) {
View Full Code Here

Examples of org.apache.xerces.xs.XSLoader.load()

      log.debug("loading xsd from InputStream");
      LSInputAdaptor input = new LSInputAdaptor(is, encoding, baseURI);

      XSImplementation impl = getXSImplementation();
      XSLoader schemaLoader = impl.createXSLoader(null);
      XSModel model = schemaLoader.load(input);
      return model;
   }

   private static XSModel loadSchema(Reader reader, String encoding, String baseURI)
   {
View Full Code Here

Examples of org.apache.xmlrpc.server.PropertyHandlerMapping.load()

         * Load handler definitions from a property file.
         * The property file might look like:
         * Calculator=org.apache.xmlrpc.demo.Calculator
         * org.apache.xmlrpc.demo.proxy.Adder=org.apache.xmlrpc.demo.proxy.AdderImpl
         */
        phm.load(Thread.currentThread().getContextClassLoader(), "org/apache/xmlrpc/webserver/XmlRpcServlet.properties");

        /*
         * You may also provide the handler classes directly, like this:
         * phm.addHandler("Calculator", org.apache.xmlrpc.demo.Calculator.class);
         * phm.addHandler(org.apache.xmlrpc.demo.proxy.Adder.class.getName(), org.apache.xmlrpc.demo.proxy.AdderImpl.class);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.CodeStream.load()

    int index = 0;
    for (int i = 0; i < nargs - 1; i++) {
      TypeBinding type = binding.parameters[i];
      codeStream.dup();
      codeStream.generateInlinedValue(i);
      codeStream.load(type, index);
      index += AstUtil.slotsNeeded(type);
      if (type.isBaseType()) {
        codeStream.invokestatic(AjTypeConstants.getConversionMethodToObject(classScope, type));
      }
View Full Code Here

Examples of org.atomojo.app.ServerConfiguration.load()

      Map<String,DB> dbList = DB.getDatabases(LOG,dir);
     
      ServerConfiguration conf = new ServerConfiguration();
      File serverConfFile = new File(dir,"server.conf");
      assertTrue(serverConfFile.exists());
      conf.load(serverConfFile.toURI());
      StorageFactory storageFactory = new FileStorageFactory();
      WebComponent web = new WebComponent(dir,dbList,storageFactory,conf);
      for (DB db : dbList.values()) {
         db.connect();
      }
View Full Code Here

Examples of org.atomojo.app.client.XMLRepresentationParser.load()

      Reference testUser1Loc = new Reference(adminUserLoc.toString()+"testuser.1");
      response = client.handle(makeGet(testUser1Loc));
      assertTrue(response.getStatus().isSuccess());
      try {
         XMLRepresentationParser parser = new XMLRepresentationParser();
         Document doc = parser.load(response.getEntity());
         Element top = doc.getDocumentElement();
         assertTrue("testuser.1".equals(top.getAttributeValue("alias")));
      } catch (Exception ex) {
         fail("Exception on get user testuser.1 response: "+ex.getMessage());
      }
View Full Code Here

Examples of org.atomojo.server.Configuration.load()

      for (int i=0; i<tests.length; i++) {
         Configuration conf = new Configuration();
         try {
            URI uri = getClass().getResource(tests[i]).toURI();
            LOG.info("Loading: "+uri);
            conf.load(uri);
            for (Protocol client : conf.getClients()) {
               LOG.info("Client: "+client);
            }
            for (Server server : conf.getServers()) {
               LOG.info("Server: "+server.getProtocol()+" at "+server.getAddress()+":"+server.getPort());
View Full Code Here

Examples of org.b3log.latke.plugin.PluginManager.load()

        registerEventProcessor();

        final PluginManager pluginManager = beanManager.getReference(PluginManager.class);

        pluginManager.load();

        LOGGER.info("Initialized the context");

        Stopwatchs.end();
        LOGGER.log(Level.DEBUG, "Stopwatch: {0}{1}", Strings.LINE_SEPARATOR, Stopwatchs.getTimingStat());
View Full Code Here

Examples of org.beanio.StreamFactory.load()

            }
            streamFactory = StreamFactory.newInstance();

            try {
                if (mappingProperties == null) {
                    streamFactory.load(mappingInputStream);
                } else {
                    final Properties p = new Properties();
                    p.putAll(mappingProperties);
                    streamFactory.load(mappingInputStream, p);
                }
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.