Examples of IApplicationContext


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

    return config.getConfigProperty( key, defaultvalue );
  }

  @Override
  protected String lookupVariable( final String property ) {
    final IApplicationContext context = PentahoSystem.getApplicationContext();
    if ( context != null ) {
      final String contextParam = context.getProperty( property );
      if ( contextParam != null ) {
        return contextParam;
      }
    }

    final IParameterProvider globalParameters = PentahoSystem.getGlobalParameters();
    if ( globalParameters != null ) {
      final String globalParam = globalParameters.getStringParameter( property, null );
      if ( globalParam != null ) {
        return globalParam;
      }
    }

    final String systemSetting = PentahoSystem.getSystemSetting( property, null );
    if ( systemSetting != null ) {
      return systemSetting;
    }

    if ( context != null ) {
      if ( "base-url".equals( property ) ) { //$NON-NLS-1$
        return context.getFullyQualifiedServerURL();
      }
    }
    return null;
  }
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.