public abstract class AbstractConfigurationManager extends Object implements ConfigurationManager
Modifier and Type | Field and Description |
---|---|
protected GriffonApplication |
application |
Constructor and Description |
---|
AbstractConfigurationManager() |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertValue(Class<?> type,
Object value,
String format,
Class<? extends PropertyEditor> editor) |
protected void |
doConfigurationInjection(Object instance,
Map<String,ConfigurationDescriptor> descriptors) |
protected void |
harvestDescriptors(Class<?> instanceClass,
Class<?> currentClass,
Object instance,
Map<String,ConfigurationDescriptor> descriptors) |
void |
injectConfiguration(Object instance) |
protected boolean |
isNoopPropertyEditor(Class<? extends PropertyEditor> editor) |
protected Object |
resolveConfiguration(String name,
String key,
String defaultValue) |
protected PropertyEditor |
resolvePropertyEditor(Class<?> type,
String format,
Class<? extends PropertyEditor> editor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getConfiguration
@Inject protected GriffonApplication application
public void injectConfiguration(@Nonnull Object instance)
injectConfiguration
in interface ConfigurationManager
protected void harvestDescriptors(@Nonnull Class<?> instanceClass, @Nonnull Class<?> currentClass, @Nonnull Object instance, @Nonnull Map<String,ConfigurationDescriptor> descriptors)
protected void doConfigurationInjection(@Nonnull Object instance, @Nonnull Map<String,ConfigurationDescriptor> descriptors)
@Nullable protected Object resolveConfiguration(@Nonnull String name, @Nonnull String key, @Nullable String defaultValue)
@Nonnull protected Object convertValue(@Nonnull Class<?> type, @Nonnull Object value, @Nullable String format, @Nonnull Class<? extends PropertyEditor> editor)
@Nonnull protected PropertyEditor resolvePropertyEditor(@Nonnull Class<?> type, @Nullable String format, @Nonnull Class<? extends PropertyEditor> editor)
protected boolean isNoopPropertyEditor(@Nonnull Class<? extends PropertyEditor> editor)