Package org.scf4j

Examples of org.scf4j.Configuration


  private Configuration defendClazz(Class<?> clazz) {
    if (!clazz.isInterface()) {
      throw new IllegalArgumentException(Messages.getString("configuration.must.be.an.interface"));
    }

    Configuration configuration = clazz.getAnnotation(Configuration.class);
    if (configuration == null) {
      throw new IllegalArgumentException(Messages.getString("not.a.configuration.0", clazz.getCanonicalName()));
    }
    return configuration;
  }
View Full Code Here


    return property;
  }

  private Object checkNested(Properties properties, Class<?> returnType, String propertyPath) throws ConfigurationException {
    if (returnType.isInterface()) {
      Configuration configuration = returnType.getAnnotation(Configuration.class);

      if (configuration != null) {
        logger.debug(Messages.getString("found.nested.configuration.pcls.path.pstr"), returnType.getCanonicalName(), propertyPath);

        return getConfiguration(returnType, properties, propertyPath);
View Full Code Here

TOP

Related Classes of org.scf4j.Configuration

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.