Coverage Report - org.apache.commons.classscan.spi.ClassDigesterFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
ClassDigesterFactory
N/A
N/A
1
 
 1  
 /*
 2  
  * Licensed under the Apache License, Version 2.0 (the "License");
 3  
  * you may not use this file except in compliance with the License.
 4  
  * You may obtain a copy of the License at
 5  
  *
 6  
  *      http://www.apache.org/licenses/LICENSE-2.0
 7  
  *
 8  
  * Unless required by applicable law or agreed to in writing, software
 9  
  * distributed under the License is distributed on an "AS IS" BASIS,
 10  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 11  
  * See the License for the specific language governing permissions and
 12  
  * limitations under the License.
 13  
  */
 14  
 package org.apache.commons.classscan.spi;
 15  
 
 16  
 import java.util.ServiceLoader;
 17  
 
 18  
 import org.apache.commons.classscan.MetaRegistry;
 19  
 import org.apache.commons.classscan.spi.model.SpiClassDigester;
 20  
 
 21  
 /**
 22  
  * Provider to create a SpiClassDigester. Provider instances should be
 23  
  * registered using the {@link ServiceLoader} facility. The provider class
 24  
  * should have a public default constructor. The first instance of a provider
 25  
  * class which is successfully instantiated will be used. The order in the
 26  
  * classpath will determine which SpiClassDigester will be used.
 27  
  */
 28  
 public interface ClassDigesterFactory {
 29  
         /**
 30  
          * Create a SpiClassDigester.  The factory may throw an exception or error if unsuccessful in loading dependent jars.
 31  
          * 
 32  
          * @param metaRegistry The registry
 33  
          * @return A SpiClassDigester
 34  
          */
 35  
         SpiClassDigester createDigester(MetaRegistry metaRegistry);
 36  
 }