Package org.springframework.beans.factory.xml

Examples of org.springframework.beans.factory.xml.DelegatingEntityResolver


    private Plugin(Bundle bundle) {
      this.bundle = bundle;

      ClassLoader loader = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundle);

      entity = new DelegatingEntityResolver(loader);
      namespace = new DefaultNamespaceHandlerResolver(loader);
    }
View Full Code Here


   * @return a OSGi aware entity resolver
   */
  private EntityResolver createEntityResolver(BundleContext bundleContext, ClassLoader bundleClassLoader) {
    Assert.notNull(bundleContext, "bundleContext is required");
    // create local namespace resolver
    EntityResolver localEntityResolver = new DelegatingEntityResolver(bundleClassLoader);
    // hook in OSGi namespace resolver
    EntityResolver osgiServiceEntityResolver = lookupEntityResolver(bundleContext, localEntityResolver);

    DelegatedEntityResolver delegate = new DelegatedEntityResolver();
    delegate.addEntityResolver(localEntityResolver, "LocalEntityResolver for bundle "
View Full Code Here

  private Document getDocument(String location) {
    InputStream inputStream = ClassLoader.class.getResourceAsStream(location);

    try {
      return documentLoader.loadDocument(new InputSource(inputStream),
        new DelegatingEntityResolver(getClass().getClassLoader()), errorHandler, 0, true);
    } catch (Exception e) {
      throw new RuntimeException(e);
    } finally {
      try {
        inputStream.close();
View Full Code Here

   */
  private EntityResolver createEntityResolver(BundleContext bundleContext, String filter,
      ClassLoader bundleClassLoader) {
    Assert.notNull(bundleContext, "bundleContext is required");
    // create local namespace resolver
    EntityResolver localEntityResolver = new DelegatingEntityResolver(bundleClassLoader);

    // hook in OSGi namespace resolver
    EntityResolver osgiServiceEntityResolver = lookupEntityResolver(bundleContext, filter, localEntityResolver);

    DelegatedEntityResolver delegate = new DelegatedEntityResolver();
View Full Code Here

    private Plugin(Bundle bundle) {
      this.bundle = bundle;

      ClassLoader loader = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundle);

      entity = new DelegatingEntityResolver(loader);
      namespace = new DefaultNamespaceHandlerResolver(loader);
    }
View Full Code Here

    private final NamespaceHandlerResolver namespace;

    private Plugin(Bundle bundle) {
      ClassLoader loader = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundle);

      entity = new DelegatingEntityResolver(loader);
      namespace = new DefaultNamespaceHandlerResolver(loader);
    }
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.xml.DelegatingEntityResolver

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.