Package io.openems.common.test
Class AbstractComponentConfig
java.lang.Object
io.openems.common.test.AbstractComponentConfig
Helper class for implementing a @Config-annotation within a Component-Test.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalias()
Gets the Component Alias.Class<? extends Annotation>
Gets the annotation Type.boolean
enabled()
Is this Component enabled?.Gets the configuration attributes in a format suitable forConfigurationAdmin
properties.id()
Gets the Component-ID.Gets the Apache Felix WebConsole configuration factory name hint.
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED- See Also:
-
-
Constructor Details
-
AbstractComponentConfig
-
-
Method Details
-
annotationType
Gets the annotation Type.- Returns:
- the
Class
-
id
Gets the Component-ID.- Returns:
- the Component-ID
-
alias
Gets the Component Alias.- Returns:
- the alias
-
enabled
public boolean enabled()Is this Component enabled?.- Returns:
- whether this component is enabled
-
webconsole_configurationFactory_nameHint
Gets the Apache Felix WebConsole configuration factory name hint.- Returns:
- a
String
-
getAsProperties
public Dictionary<String,Object> getAsProperties() throws IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionGets the configuration attributes in a format suitable forConfigurationAdmin
properties.- Returns:
- the properties
- Throws:
IllegalAccessException
- on errorIllegalArgumentException
- on errorInvocationTargetException
- on error
-