protected Validator getSingleValidator(ValidatorPair pair) {
   Map properties = pair.properties;
   if (HotdeployUtil.isHotdeploy()) {
     properties = EnumUtil.convertNameToEnum(properties);
   }
   final Validator validator = (Validator) container.getComponent(pair.validatorName);
   BeanUtil.copyProperties(properties, validator);
   return validator;
 }
Exemplo n.º 2
0
 /**
  * HOT deployかどうか返します。
  *
  * @param container
  * @return HOT deployかどうか
  */
 public static boolean isHotdeployMode(S2Container container) {
   return HotdeployUtil.isHotdeploy();
 }