All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.configuration.io.URLConfigurationResourceResolver Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.configuration.io;

import java.io.IOException;
import java.net.URL;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 12.1
 **/
public class URLConfigurationResourceResolver implements ConfigurationResourceResolver {
   private final URL context;

   public URLConfigurationResourceResolver(URL context) {
      this.context = context;
   }

   @Override
   public URL resolveResource(String href) throws IOException {
      return new URL(context, href);
   }

   @Override
   public URL getContext() {
      return context;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy