Package nexj.core.meta

Examples of nexj.core.meta.MetadataLoaderDispatcher


            sBase = "";
         }

         properties.setProperty(XMLMetadataLoader.BASE_URL_PROPERTY, sBase);

         Metadata metadata = new MetadataLoaderDispatcher().load(getRequiredProperty("root.url"),
            properties, XMLMetadataLoader.VALIDATED_ONLY, null);

         s_logger.info("Version: " + metadata.getVersion());
         s_logger.info("Revision: " + metadata.getRevision());
         s_logger.info("Checksum: " + metadata.getChecksum());
View Full Code Here


         }

         String sMetaName = (String)m_itemList.get(0);
         MetadataObject metaObj;

         m_metadata = new MetadataLoaderDispatcher().load(null, null, XMLMetadataLoader.DOCUMENTATION_INCLUDED, null);
         m_context = (InvocationContext)m_metadata.getComponent("System.InvocationContext").getInstance(null);

         switch (m_nCommand)
         {
            case COMMAND_EXPORT:
View Full Code Here

            s_logger.info("Loading old repository");

            if (oldMetadata == null)
            {
               oldMetadata = new MetadataLoaderDispatcher().load(sPreviousMetaURL, properties, MetadataLoader.DEFAULT, null);
            }

            init(oldMetadata);

            s_logger.info("Recreating the old data");
View Full Code Here

            configProperties.setProperty(XMLMetadataLoader.CONNECTIONS_URL_PROPERTY, URLUtil.toURL(getProperty("con.url")));
         }

         configProperties.setProperty(SysUtil.CONFIG_PROPERTY, sConfig);

         MetadataLoaderDispatcher loaderDispatcher = new MetadataLoaderDispatcher();
        
         Metadata metadata = loaderDispatcher.load(
            URLUtil.toURL(getRequiredProperty("root.url")),
            configProperties, MetadataLoader.ENVIRONMENT_ONLY, null);

         metadataEnabledProperties.setMetadataLoaderProperties(metadata.getProperties());
         m_installer.setMetadata(metadata);
View Full Code Here

      {
         exportSchema();
      }
      else if (sCommand.equals("setup"))
      {
         Metadata metadata = new MetadataLoaderDispatcher().load(null, null,
            MetadataLoader.DATASOURCE_ONLY | MetadataLoader.INTEGRATION_EXCLUDED, null);
         RelationalDatabase database = getDatabase(metadata);

         manager = getSchemaManager(database);
         manager.createDatabase((RelationalSchema)database.getSchema(), new PropertyMap()
View Full Code Here

            Metadata compatible;

            try
            {
               compatible = new MetadataLoaderDispatcher().load(sCompatibleURI, compatibleProperties, nFlags, null);
            }
            catch (UncheckedException e)
            {
               throw new MetadataCompatibilityException("err.meta.compatibleMetadataLoadFailure", null, e);
            }
View Full Code Here

      }

      properties.setProperty(SysUtil.CONFIG_PROPERTY, URLUtil.toURL(sConfig));
      properties.setProperty(XMLMetadataLoader.CONNECTIONS_URL_PROPERTY, URLUtil.toURL(sConnections));

      exportDescriptor(sDir, new MetadataLoaderDispatcher().load(
         URLUtil.toURL(sRoot), properties,
         MetadataLoader.ENVIRONMENT_ONLY | MetadataLoader.ENCRYPTED, null), bOverwrite);
   }
View Full Code Here

      Properties props = SysUtil.getConfigProperties();

      props = new Properties(props);
      props.setProperty(XMLMetadataLoader.CONNECTIONS_URL_PROPERTY, "/nexj/" + sAdapter.toLowerCase(Locale.ENGLISH) + ".connections");

      return new MetadataLoaderDispatcher().load(null, props, 0, null);
   }
View Full Code Here

      Properties props = SysUtil.getConfigProperties();

      props = new Properties(props);
      props.setProperty(XMLMetadataLoader.CONNECTIONS_URL_PROPERTY, "/nexj/" + sAdapter.toLowerCase(Locale.ENGLISH) + ".connections");
     
      return new MetadataLoaderDispatcher().load(
         props.getProperty(MetadataLoader.METADATA_URL_PROPERTY,
            MetadataLoader.DEFAULT_METADATA_URL), props, 0, null);
   }
View Full Code Here

TOP

Related Classes of nexj.core.meta.MetadataLoaderDispatcher

Copyright © 2018 www.massapicom. 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.