Package org.pentaho.platform.api.engine

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


    try {
      if ( !StringUtils.isEmpty( plugin.getLifecycleListenerClassname() ) ) {
        listener = loader.loadClass( plugin.getLifecycleListenerClassname() ).newInstance();
      }
    } catch ( Throwable t ) {
      throw new PlatformPluginRegistrationException( Messages.getInstance().getErrorString(
        "PluginManager.ERROR_0017_COULD_NOT_LOAD_PLUGIN_LIFECYCLE_LISTENER", plugin.getId(), plugin //$NON-NLS-1$
        .getLifecycleListenerClassname() ), t );
    }

    if ( listener != null ) {
      if ( !IPluginLifecycleListener.class.isAssignableFrom( listener.getClass() ) ) {
        throw new PlatformPluginRegistrationException(
          Messages
            .getInstance()
            .getErrorString(
              "PluginManager.ERROR_0016_PLUGIN_LIFECYCLE_LISTENER_WRONG_TYPE", plugin.getId(),
              plugin.getLifecycleListenerClassname() ) ); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.PlatformPluginRegistrationException

Copyright © 2018 www.massapicom. 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.