[New] Added StrolchConfiguration.getComponentConfiguration(Class)

This commit is contained in:
Robert von Burg 2017-02-17 13:38:21 +01:00
parent 3770e7b65c
commit 834fab7601
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ public class StrolchConfiguration {
return this.configurationByComponent.keySet();
}
public ComponentConfiguration getComponentConfiguration(Class<?> componentClass) {
return getComponentConfiguration(componentClass.getSimpleName());
}
public ComponentConfiguration getComponentConfiguration(String componentName) {
ComponentConfiguration componentConfiguration = this.configurationByComponent.get(componentName);
if (componentConfiguration == null) {