Пример #1
0
 public FunctionMatcher(String beanAndFunction) {
   int i = beanAndFunction.lastIndexOf('.');
   Assert.assertTrue(i > -1 && i < beanAndFunction.length(), "FunctionMatcher.format.error");
   function = beanAndFunction.substring(i + 1);
   String beanName = beanAndFunction.substring(0, i);
   try {
     bean = ClassUtils.forName(beanName);
   } catch (ClassNotFoundException e) {
     Assert.fail("FunctionMatcher.type.error", new Object[] {beanName, e.getMessage()});
   }
 }