Examples of FeatureAccessException


Examples of org.zeroexchange.feature.exception.FeatureAccessException

        Method proxiedMethod = ((MethodSignature)joinPoint.getSignature()).getMethod();
        Method targetMethod = targetClass.getMethod(proxiedMethod.getName(), proxiedMethod.getParameterTypes());
        FeatureMarker marker = (FeatureMarker) targetMethod.getAnnotation(FeatureMarker.class);
        if(!featuresRegistry.isFeatureEnabled(marker.value())) {
            log.error("The feature '" + marker.value() + "' is not enabled");
            throw new FeatureAccessException("The feature '" + marker.value() + "' is not enabled!");
        }
       
        return joinPoint.proceed();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.