1 17 18 package org.sape.carbon.core.config.type; 19 20 21 import org.sape.carbon.core.component.FunctionalInterface; 22 import org.sape.carbon.core.config.Configuration; 23 24 34 public interface ConfigurationTypeService extends FunctionalInterface { 35 36 42 String toString(Class type, Object value); 43 44 54 Object toObject(Class type, String value) 55 throws ConfigurationTypeException; 56 57 65 Configuration toConfiguration(Class type, Object data) 66 throws ConfigurationTypeException; 67 68 79 Object toObject(Class type, Configuration value) 80 throws ConfigurationTypeException; 81 82 94 boolean isComplexType(Class type); 95 96 102 Class getRequiredConfigurationInterface(Class type); 103 104 111 boolean isCacheableType(Class type); 112 } 113 | Popular Tags |