Examples of IPentahoDefinableObjectFactory


Examples of org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory

    return this;
  }

  public MicroPlatform defineInstance( String key, Object instance ) {
    if ( getFactory() instanceof IPentahoDefinableObjectFactory ) {
      IPentahoDefinableObjectFactory definableFactory = (IPentahoDefinableObjectFactory) getFactory();
      definableFactory.defineInstance( key, instance );
    } else {
      throw new NoSuchMethodError( "define is only supported by IPentahoDefinableObjectFactory" );
    }
    return this;
  }
View Full Code Here

Examples of org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory

   * @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;
  }
View Full Code Here

Examples of org.pentaho.platform.api.engine.IPentahoDefinableObjectFactory

   * @return the current MicroPlatform instance, for chaining
   */

  public PentahoSystemBoot define( String key, Object instance ) {
    if ( factory instanceof IPentahoDefinableObjectFactory ) {
      IPentahoDefinableObjectFactory definableFactory = (IPentahoDefinableObjectFactory) getFactory();
      definableFactory.defineInstance( key, instance );
    } else {
      throw new NoSuchMethodError( "defineInstance is only supported by IPentahoDefinableObjectFactory" ); //$NON-NLS-1$
    }
    return this;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.