Coverage Report - org.dozer.util.DozerClassLoader
 
Classes in this File Line Coverage Branch Coverage Complexity
DozerClassLoader
N/A
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2013 Dozer Project
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.dozer.util;
 17  
 
 18  
 import java.net.URL;
 19  
 
 20  
 /**
 21  
  * Service Provider Interface for control of Dozer Class and Resource loading behavior.
 22  
  * Could be used in order to provide specific implementations for web-container, j2ee container and osgi environments.
 23  
  *
 24  
  * @author dmitry.buzdin
 25  
  */
 26  
 public interface DozerClassLoader {
 27  
 
 28  
   /**
 29  
    * Loads class by provided name
 30  
    *
 31  
    * @param className fully qualified class name
 32  
    * @return the class if found, null otherwise
 33  
    */
 34  
   Class<?> loadClass(java.lang.String className);
 35  
 
 36  
   /**
 37  
    * Loads the resource by URI as an URL
 38  
    *
 39  
    * @param uri uri of the resource
 40  
    * @return resource URL
 41  
    */
 42  
   URL loadResource(String uri);
 43  
 
 44  
 }