Package com.volantis.mcs.runtime.configuration.project

Examples of com.volantis.mcs.runtime.configuration.project.XmlPoliciesConfiguration


            AbstractPoliciesConfiguration policies =
                    project.getPolicies();
            assertNotNull(policies);
            assertTrue(policies instanceof XmlPoliciesConfiguration);
            XmlPoliciesConfiguration xmlPolicies =
                    (XmlPoliciesConfiguration) policies;
            assertEquals("", "an xml dir", xmlPolicies.getDirectory());

            AssetsConfiguration assets = project.getAssets();
            assertNotNull(assets);
            AssetConfiguration audioAssets = assets.getAudioAssets();
            assertNotNull(audioAssets);
View Full Code Here


                ConfigProjectPoliciesXmlValue xml =
                        (ConfigProjectPoliciesXmlValue)
                        config.defaultProjectPolicies;
                Assert.assertTrue("default policies should be JDBC",
                        defaultPolicies instanceof XmlPoliciesConfiguration);
                XmlPoliciesConfiguration xmlPolicies =
                        (XmlPoliciesConfiguration) defaultPolicies;
                Assert.assertEquals(xml.projectDir, xmlPolicies.getDirectory());
            }
        } else {
            if (config.defaultProjectPolicies != null) {
                ConfigProjectPoliciesJdbcValue jdbc =
                        (ConfigProjectPoliciesJdbcValue)
View Full Code Here

        // We only support xml policy sources for remote projects at
        // the moment - anything else is treated as if no policy source
        // was specified.
        if (policies instanceof XmlPoliciesConfiguration) {
            XmlPoliciesConfiguration xmlPolicies =
                    (XmlPoliciesConfiguration) policies;
            String directory = xmlPolicies.getDirectory();
            if (!directory.endsWith("/")) {
                directory = directory + "/";
            }

            // Resolve the directory against the location of the project file.
View Full Code Here

            if (remote) {
                throw new IllegalStateException("Remote projects cannot " +
                        "access policies in XML repository");
            }

            XmlPoliciesConfiguration xmlPoliciesConfiguration =
                    (XmlPoliciesConfiguration) policies;

            // If the directory is not absolute then resolve it against the
            // location of the mcs-project.xml file.
            String directory = xmlPoliciesConfiguration.getDirectory();
            String resolved = resolveRelativeFile(directory);

            policySource = factory.createXMLPolicySource(resolved);
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.project.XmlPoliciesConfiguration

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.