Package com.esri.gpt.framework.context

Examples of com.esri.gpt.framework.context.ConfigurationException


      linkBuilder.initialize(servletRequest, context, messageBroker);
      return linkBuilder;
    } else {
      String sMsg = "The configured resourceLinkBuilder parameter is invalid: "
          + className;
      throw new ConfigurationException(sMsg);
    }
  } catch (ConfigurationException t) {
    throw t;
  } catch (Throwable t) {
    String sMsg = "Error instantiating resource link builder: " + className;
    throw new ConfigurationException(sMsg, t);
  }
}
View Full Code Here


      Object obj = cls.newInstance();
      if (obj instanceof AsnValueFilter) {
        return (AsnValueFilter)obj;
      } else {
        String msg = "The configured valueFilterClass is invalid: "+ className;
        throw new ConfigurationException(msg);
      }
    }
  }
View Full Code Here

      }
    } catch (Exception e) {
      String msg = "Error loading XML file: "+Val.chkStr(this.getLocation());
      msg += ", "+Val.chkStr(e.toString());
      LOGGER.log(Level.CONFIG,msg,e);
      throw new ConfigurationException(msg,e);
    }
    return dom;
  }
View Full Code Here

      Object obj = cls.newInstance();
      if (obj instanceof TocItem) {
        return (TocItem)obj;
      } else {
        String msg = "The configured item.className is invalid: "+className;
        throw new ConfigurationException(msg);
      }
    }
  }
View Full Code Here

   
    String key = "sdisuite.integrationContextClass";
    String className =Val.chkStr(config.getValue(key));
    if (className.length() == 0) {
      String msg = "The configured "+key+" was empty";
      throw new ConfigurationException(msg);
    } else {
      Class<?> cls = Class.forName(className);
      Object obj = cls.newInstance();
      if (obj instanceof IntegrationContext) {
        IntegrationContext ictx = (IntegrationContext)obj;
        ictx.setConfig(config);
        return ictx;
      } else {
        String msg = "The configured "+key+" is invalid: "+ className;
        throw new ConfigurationException(msg);
      }
    }
   
  }
View Full Code Here

   if(pageCursorObj instanceof PageCursor) {

    pageCursor = (PageCursor) pageCursorObj;

   } else {
    throw new ConfigurationException("Search Criteria PageCursor in JSF " +
        "Paginator should be an"  //$NON-NLS-1$
      + "instance of " + PageCursor.class.getCanonicalName()); //$NON-NLS-1$
   }
  } catch (Throwable t) {
    // for backward compatibility
View Full Code Here

  if(pageCursorObj instanceof PageCursor) {

    pageCursor = (PageCursor) pageCursorObj;

  } else {
    throw new ConfigurationException("PageCursor in JSF Paginator should be an"  //$NON-NLS-1$
        + "instance of " + PageCursor.class.getCanonicalName()); //$NON-NLS-1$
  }

  return this.pageCursor;
View Full Code Here

  }
  Object actionListener = this.getAttributes()
  .get(ComponentMapKeys.actionListener.name());

  if(!(actionListener instanceof MethodBinding)) {
    throw new ConfigurationException("ActionListener for Pagintor should " + //$NON-NLS-1$
        " be a valid method binding. Object derived =  " + actionListener) ; //$NON-NLS-1$
  }

  return (MethodBinding) actionListener;
View Full Code Here

      Object obj = cls.newInstance();
      if (obj instanceof TocQueryProvider) {
        return (TocQueryProvider)obj;
      } else {
        String msg = "The configured query.className is invalid: "+className;
        throw new ConfigurationException(msg);
      }
    }
  }
View Full Code Here

      if (obj instanceof ResourceIdentifier) {
        ResourceIdentifier linkIdentifier = (ResourceIdentifier)obj;
        return linkIdentifier;
      } else {
        String sMsg = "The configured resourceLinkIdentifier parameter is invalid: "+className;
        throw new ConfigurationException(sMsg);
      }
    } catch (ConfigurationException t) {
      throw t;
    } catch (Throwable t) {
      String sMsg = "Error instantiating resource link identifier: " + className;
      throw new ConfigurationException(sMsg, t);
    }
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.context.ConfigurationException

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.