liquibase.servicelocator
Class ServiceLocator

java.lang.Object
  extended by liquibase.servicelocator.ServiceLocator

public class ServiceLocator
extends Object


Method Summary
 void addPackageToScan(String packageName)
           
 Class findClass(Class requiredInterface)
           
 Class[] findClasses(Class requiredInterface)
           
static ServiceLocator getInstance()
           
protected  Logger getLogger()
           
 Object newInstance(Class requiredInterface)
           
static void reset()
           
 void setResourceAccessor(ResourceAccessor resourceAccessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ServiceLocator getInstance()

setResourceAccessor

public void setResourceAccessor(ResourceAccessor resourceAccessor)

addPackageToScan

public void addPackageToScan(String packageName)

findClass

public Class findClass(Class requiredInterface)
                throws ServiceNotFoundException
Throws:
ServiceNotFoundException

findClasses

public Class[] findClasses(Class requiredInterface)
                    throws ServiceNotFoundException
Throws:
ServiceNotFoundException

newInstance

public Object newInstance(Class requiredInterface)
                   throws ServiceNotFoundException
Throws:
ServiceNotFoundException

reset

public static void reset()

getLogger

protected Logger getLogger()


Copyright © 2004-2011 Liquibase.org. All Rights Reserved.