Package com.volantis.mcs.migrate.api.framework

Examples of com.volantis.mcs.migrate.api.framework.FrameworkFactory


        String filename = "blah.ext";
        final String inputData = "the old input";
        final String outputData = "the new output";

        FrameworkFactory factory = FrameworkFactory.getDefaultInstance();

        Version version1 = factory.createVersion("version 1");
        Version version2 = factory.createVersion("version 2");

        SimpleCLINotificationReporter notificationReporter =
                new SimpleCLINotificationReporter();

        ResourceMigratorBuilder builder =
                factory.createResourceMigratorBuilder(notificationReporter);

        builder.setTarget(version2);

        builder.startType("type");
        builder.setRegexpPathRecogniser(filename);
View Full Code Here


    public void testSimpleXSL() throws ResourceMigrationException {

        // Note: We will need a VersionRegistry to handle creating versions on
        // the fly from an XML file, but for now just create them normally.

        FrameworkFactory factory = FrameworkFactory.getDefaultInstance();

        Version v30 = factory.createVersion("3.0");
        Version v35 = factory.createVersion("3.4");

        SimpleCLINotificationReporter notificationReporter =
                new SimpleCLINotificationReporter();

        ResourceMigratorBuilder builder =
                factory.createResourceMigratorBuilder(notificationReporter);

        builder.setTarget(v35);

        builder.startType("lpdm");
        builder.setRegexpPathRecogniser(".*mthm");
 
View Full Code Here

            throws ResourceMigrationException, IOException {

        NotificationFactory notificationFactory =
                NotificationFactory.getDefaultInstance();
        ConfigFactory configFactory = ConfigFactory.getDefaultInstance();
        FrameworkFactory frameworkFactory =
                FrameworkFactory.getDefaultInstance();

        NotificationReporter notifier =
                notificationFactory.createLogDispatcherReporter(logger);

        ByteArrayOutputCreator outputCreator = new ByteArrayOutputCreator();
        ResourceMigrator migrator = configFactory.createDefaultResourceMigrator(
                notifier, true);
        InputMetadata meta = frameworkFactory.createInputMetadata(url, false);
        migrator.migrate(meta, stream, outputCreator);
        return outputCreator.getOutputStream().toString();
    }
View Full Code Here

public class DefaultConfigFactory extends ConfigFactory {

    public ResourceMigrator createDefaultResourceMigrator(
            NotificationReporter reporter, boolean strictMode) throws ResourceMigrationException {
        FrameworkFactory factory = FrameworkFactory.getDefaultInstance();

        Version rpdm27to30 = factory.createVersion("rpdm 2.7-3.0");
        Version lpdm30 = factory.createVersion("lpdm 3.0");

        Version repository200509 = factory.createVersion("repository 2005/09");
        Version repository200512 = factory.createVersion("repository 2005/12");
        Version repository200602 = factory.createVersion("repository 2006/02");

        ResourceMigratorBuilder builder =
                factory.createResourceMigratorBuilder(reporter);

        // ====================================================================
        //     Repository Migration
        // ====================================================================
View Full Code Here

TOP

Related Classes of com.volantis.mcs.migrate.api.framework.FrameworkFactory

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.