public synchronized static ServiceFactory getInstance ( Class < ? > aClass , String configurationPath ) { if ( configurationPath == null ) { configurationPath = "" ; } if ( instances . get ( configurationPath ) == null ) { instances . put ( configurationPath , createServiceFactory ( aClass , configurationPath ) ) ; } return ( ServiceFactory ) instances . get ( configurationPath ) ; }
Singleton factory method