org.mockito.internal.configuration
Class ClassPathLoader

java.lang.Object
  extended by org.mockito.internal.configuration.ClassPathLoader

public class ClassPathLoader
extends java.lang.Object

Loads configuration or extension points available in the classpath.


Field Summary
static java.lang.String MOCKITO_CONFIGURATION_CLASS_NAME
           
 
Constructor Summary
ClassPathLoader()
           
 
Method Summary
static MockMaker getMockMaker()
          Returns the implementation of the mock maker available for the current runtime.
 IMockitoConfiguration loadConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MOCKITO_CONFIGURATION_CLASS_NAME

public static final java.lang.String MOCKITO_CONFIGURATION_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

ClassPathLoader

public ClassPathLoader()
Method Detail

loadConfiguration

public IMockitoConfiguration loadConfiguration()
Returns:
configuration loaded from classpath or null

getMockMaker

public static MockMaker getMockMaker()
Returns the implementation of the mock maker available for the current runtime.

Returns CglibMockMaker if no MockMaker extension exists or is visible in the current classpath.