Class AbstractComponentConfig


  • public class AbstractComponentConfig
    extends java.lang.Object
    Helper class for implementing a @Config-annotation within a Component-Test.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEFAULT_ENABLED  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractComponentConfig​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation, java.lang.String id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String alias()  
      java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()  
      boolean enabled()  
      java.util.Dictionary<java.lang.String,​java.lang.Object> getAsProperties()
      Gets the configuration attributes in a format suitable for ConfigurationAdmin properties.
      java.lang.String id()  
      java.lang.String webconsole_configurationFactory_nameHint()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractComponentConfig

        public AbstractComponentConfig​(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
                                       java.lang.String id)
    • Method Detail

      • annotationType

        public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
      • id

        public java.lang.String id()
      • alias

        public java.lang.String alias()
      • enabled

        public boolean enabled()
      • webconsole_configurationFactory_nameHint

        public java.lang.String webconsole_configurationFactory_nameHint()
      • getAsProperties

        public java.util.Dictionary<java.lang.String,​java.lang.Object> getAsProperties()
                                                                                      throws java.lang.IllegalAccessException,
                                                                                             java.lang.IllegalArgumentException,
                                                                                             java.lang.reflect.InvocationTargetException
        Gets the configuration attributes in a format suitable for ConfigurationAdmin properties.
        Returns:
        the properties
        Throws:
        java.lang.IllegalAccessException - on error
        java.lang.IllegalArgumentException - on error
        java.lang.reflect.InvocationTargetException - on error