public OrtcFactory loadOrtcFactory ( String ortcType ) throws InstantiationException , IllegalAccessException , ClassNotFoundException { OrtcFactory result = null ; // Gets the plugin class definition Class < ? > factoryClass = this . getClass ( ) . getClassLoader ( ) . loadClass ( String . format ( "ibt.ortc.plugins.%s.%sFactory" , ortcType , ortcType ) ) ; if ( factoryClass != null ) { // Creates an instance of the plugin class result = OrtcFactory . class . cast ( factoryClass . newInstance ( ) ) ; } return result ; }
Creates an instance of a factory of the specified Ortc plugin type