private AtomicBoolean inited = new AtomicBoolean(false);
//
protected MappingDefine(String bindID, Method targetMethod, CallStrategyFactory strategyFactory) {
MappingTo pathAnno = targetMethod.getAnnotation(MappingTo.class);
if (pathAnno == null)
throw new UndefinedException("is not a valid Mapping Service.");
String servicePath = pathAnno.value();
if (StringUtils.isBlank(servicePath))
throw new NullPointerException("Service path is empty.");
if (!servicePath.matches("/.+"))
throw new IllegalStateException("Service path format error");