Examples of BuiltBy


Examples of org.infinispan.configuration.BuiltBy

   @SuppressWarnings("unchecked")
   @Override
   public LoadersConfigurationBuilder read(LoadersConfiguration template) {
      for (LoaderConfiguration c : template.cacheLoaders()) {
         BuiltBy builtBy = c.getClass().getAnnotation(BuiltBy.class);
         if (builtBy==null) {
            throw new ConfigurationException("Missing BuiltBy annotation for configuration bean "+c.getClass().getName());
         }
         Class<? extends LoaderConfigurationBuilder<?, ?>> builderClass = (Class<? extends LoaderConfigurationBuilder<?, ?>>) builtBy.value();
         Builder<Object> builder = (Builder<Object>) this.addLoader(builderClass);
         builder.read(c);
      }
      this.passivation = template.passivation();
      this.preload = template.preload();
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.