* @throws NoSuchMethodError
* if the object factory does not support runtime object definition
*/
public PentahoSystemBoot define( String key, String implClassName, Scope scope ) {
if ( factory instanceof IPentahoDefinableObjectFactory ) {
IPentahoDefinableObjectFactory definableFactory = (IPentahoDefinableObjectFactory) getFactory();
definableFactory.defineObject( key, implClassName, scope );
} else {
throw new NoSuchMethodError( "define is only supported by IPentahoDefinableObjectFactory" ); //$NON-NLS-1$
}
return this;
}