Package com.volantis.mcs.migrate.api.config

Examples of com.volantis.mcs.migrate.api.config.ConfigFactory


    public String migratePolicy(InputStream stream, String url)
            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


        globalProjectMock =
                new RuntimeProjectMock("globalProjectMock", expectations);

        methodMock = new HttpGetMethodMock("methodMock", expectations);

        ConfigFactory migrationFactory = ConfigFactory.getDefaultInstance();
        RemotePolicyMigrator migrator =
                migrationFactory.createRemotePolicyMigrator();

        parser = new RemotePolicyBuilderParser(migrator);
    }
View Full Code Here

     */
    public RemoteReadersFactoryImpl(Period timeout, SystemClock clock) {

        factory = new HttpMethodFactoryImpl(timeout, clock);

        ConfigFactory migratorFactory = ConfigFactory.getDefaultInstance();
        RemotePolicyMigrator migrator =
                migratorFactory.createRemotePolicyMigrator();
        parser = new RemotePolicyBuilderParser(migrator);

    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.migrate.api.config.ConfigFactory

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.