Examples of NamespaceManager


Examples of org.mule.module.xml.util.NamespaceManager

            if (xpathEvaluator == null)
            {
                xpathEvaluator = new SaxonXpathEvaluator();
                try
                {
                    NamespaceManager namespaceManager = muleContext.getRegistry().lookupObject(NamespaceManager.class);
                    if (namespaceManager != null)
                    {
                        xpathEvaluator.registerNamespaces(namespaceManager);
                    }
                }
View Full Code Here

Examples of org.mule.module.xml.util.NamespaceManager

        return JXPathContext.newContext(payload);
    }

    private Object getExpressionValue(JXPathContext context, String expression)
    {
        NamespaceManager theNamespaceManager = getNamespaceManager();
        if (theNamespaceManager != null)
        {
            addNamespacesToContext(theNamespaceManager, context);
        }
View Full Code Here

Examples of org.mule.module.xml.util.NamespaceManager

    }

    @Test
    public void testGlobalNamespaces() throws Exception
    {
        NamespaceManager manager = muleContext.getRegistry().lookupObject(NamespaceManager.class);
        assertNotNull(manager);
        assertTrue(manager.isIncludeConfigNamespaces());
        assertEquals(5, manager.getNamespaces().size());
    }
View Full Code Here

Examples of org.mule.module.xml.util.NamespaceManager

    }

    @Test
    public void testXmlWithInvalidNameSpaceIfNameSpaceAliasIsDefined() throws MalformedURLException, RegistrationException
    {
        NamespaceManager namespaceManager = new NamespaceManager();
        Map<String, String> namespaces = new HashMap<String, String>();
        namespaces.put("f", "http://www.w3schools.com/furniture");
        namespaceManager.setNamespaces(namespaces);
        muleContext.getRegistry().registerObject(MuleProperties.OBJECT_MULE_NAMESPACE_MANAGER, namespaceManager);

        DefaultMuleMessage msg = new DefaultMuleMessage(XML_USING_UNDEFINED_NAMESPACE, muleContext);

        JXPathExpressionEvaluator e = new JXPathExpressionEvaluator();
View Full Code Here

Examples of org.openrdf.sail.rdbms.managers.NamespaceManager

      else {
        ids = new LongIdSequence();
        ids.init();
        tables.setIdSequence(ids);
      }
      namespaces = new NamespaceManager();
      namespaces.setConnection(resourceInserts);
      NamespacesTable nsTable = tables.createNamespacesTable(nsAndTableIndexes);
      nsTable.initialize();
      namespaces.setNamespacesTable(nsTable);
      namespaces.initialize();
View Full Code Here

Examples of org.openrdf.sail.rdbms.managers.NamespaceManager

      else {
        ids = new LongIdSequence();
        ids.init();
        tables.setIdSequence(ids);
      }
      namespaces = new NamespaceManager();
      namespaces.setConnection(resourceInserts);
      NamespacesTable nsTable = tables.createNamespacesTable(nsAndTableIndexes);
      nsTable.initialize();
      namespaces.setNamespacesTable(nsTable);
      namespaces.initialize();
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.core.internal.model.namespaces.NamespaceManager

        return reportingThread;
      }
    });

   
    nsManager = new NamespaceManager(context);
    getPreferenceStore().setDefault(TIMEOUT_CONFIG_LOADING_PREFERENCE_ID, 60);
    getPreferenceStore().setDefault(NAMESPACE_DEFAULT_FROM_CLASSPATH_ID, true);
    getPreferenceStore().setDefault(LOAD_NAMESPACEHANDLER_FROM_CLASSPATH_ID, true);

    Job modelJob = new Job("Initializing Spring Tooling") {
View Full Code Here

Examples of org.springframework.osgi.extender.internal.support.NamespaceManager

    detectSpringVersion(context);

    compatibilityChecker = new SpringTypeCompatibilityChecker(bundleContext);

    // Step 1 : discover existing namespaces (in case there are fragments with custom XML definitions)
    nsManager = new NamespaceManager(context);

    // register listener first to make sure any bundles in INSTALLED state
    // are not lost
    nsListener = new NamespaceBundleLister();
    context.addBundleListener(nsListener);
View Full Code Here

Examples of org.springframework.osgi.extender.internal.support.NamespaceManager

    this.extenderVersion = OsgiBundleUtils.getBundleVersion(context.getBundle());
    log.info("Starting [" + bundleContext.getBundle().getSymbolicName() + "] bundle v.[" + extenderVersion + "]");

    // Step 1 : discover existing namespaces (in case there are fragments with custom XML definitions)
    nsManager = new NamespaceManager(context);

    // register listener first to make sure any bundles in INSTALLED state
    // are not lost
    nsListener = new NamespaceBundleLister();
    context.addBundleListener(nsListener);
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.