@ Deprecated public static < C > Class < ? extends C > loadFromClassOrInherit ( String handle , Class < C > ifaceClass , Map < String , Object > tuples ) throws Exception { String [ ] name = handle . split ( "!" ) ; if ( name [ 0 ] . equals ( "class" ) ) { return Class . forName ( name [ 1 ] ) . asSubclass ( ifaceClass ) ; } else { if ( name [ 0 ] . equals ( "inherit" ) ) { AnyObject yaml = ConfigurationLoader . load ( name [ 1 ] ) ; return getFromClassOrInherit ( yaml , ifaceClass , tuples ) ; } else { throw new IllegalArgumentException ( "Illegal experiment descriptor, must contain one node of type <class> or <inherit>" ) ; } } }
These methods are preserved for compatibility with the old version of PhaseImpl