Package net.hasor.mvc

Examples of net.hasor.mvc.MappingTo


    private MappingInfo               mappingInfo      = null;
    private CallStrategyFactory       strategyFactory  = null;
    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");
        //
View Full Code Here

TOP

Related Classes of net.hasor.mvc.MappingTo

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.