Exemplo n.º 1
0
 public void end(String sNamespace, String sName) throws XMLConfigLoaderException {
   if (_oDir == null || Strings.isEmpty(_oDir.getPath())) {
     throw new XMLConfigLoaderException(
         "config > java-class-path > compiled-directory: must specify a directory name");
   }
   _oJavaClassPath.addCompiledDir(_oDir, _sPackageNamePrefix);
 }
Exemplo n.º 2
0
 public void body(String sNamespace, String sName, String sText)
     throws XMLConfigLoaderException {
   if (Strings.isEmpty(sText)) {
     throw new XMLConfigLoaderException(
         "config > controller-mapping > ignore-handler-method-case: must specify a boolean value, specify true or false");
   }
   _oIgnoreMethodNameCase = Boolean.valueOf(sText);
 }
Exemplo n.º 3
0
 public void body(String sNamespace, String sName, String sText)
     throws XMLConfigLoaderException {
   if (Strings.isEmpty(sText)) {
     throw new XMLConfigLoaderException(
         "config > controller-mapping > default-handler-method: must specify a valid method name");
   }
   _sDefaultHandlerMethodName = sText;
 }
Exemplo n.º 4
0
  public void end(String sNamespace, String sName) throws XMLConfigLoaderException {
    if (_oIgnoreMethodNameCase != null) {
      _oControllerMapping.setIgnoreMethodNameCase(_oIgnoreMethodNameCase.booleanValue());
    }

    if (!Strings.isEmpty(_sDefaultHandlerMethodName)) {
      _oControllerMapping.setDefaultHandlerMethodName(_sDefaultHandlerMethodName);
    }
  }