Class ComponentDef


  • class ComponentDef
    extends ExtensionDef
    This class just holds the information for the component, implementation, and service/provide elements. The prepare(Analyzer) method will check if things are ok and the getTag() method returns a tag if the prepare method returns without any errors. The class uses ReferenceDef to hold the references.
    • Field Detail

      • MARKER

        static final java.lang.String MARKER
      • properties

        final java.util.List<java.lang.String> properties
      • property

        final MultiMap<java.lang.String,​java.lang.String> property
      • propertyType

        final java.util.Map<java.lang.String,​java.lang.String> propertyType
      • references

        final java.util.Map<java.lang.String,​ReferenceDef> references
      • name

        java.lang.String name
      • factory

        java.lang.String factory
      • immediate

        java.lang.Boolean immediate
      • scope

        org.osgi.service.component.annotations.ServiceScope scope
      • configurationPolicy

        org.osgi.service.component.annotations.ConfigurationPolicy configurationPolicy
      • activate

        java.lang.String activate
      • deactivate

        java.lang.String deactivate
      • modified

        java.lang.String modified
      • enabled

        java.lang.Boolean enabled
      • xmlns

        java.lang.String xmlns
      • configurationPid

        java.lang.String[] configurationPid
      • propertyTags

        java.util.List<Tag> propertyTags
    • Method Detail

      • effectiveName

        java.lang.String effectiveName()
      • prepare

        void prepare​(Analyzer analyzer)
              throws java.lang.Exception
        Called to prepare. If will look for any errors or inconsistencies in the setup.
        Parameters:
        analyzer - the analyzer to report errors and create references
        Throws:
        java.lang.Exception
      • prepareVersion

        private void prepareVersion​(Analyzer analyzer)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • sortReferences

        void sortReferences()
      • getTag

        Tag getTag()
        Returns a tag describing the component element.
        Returns:
        a component element
      • check

        private java.lang.String check​(java.lang.String type,
                                       java.lang.String v,
                                       Analyzer analyzer)
      • updateVersion

        void updateVersion​(Version version)
      • max

        static <T extends java.lang.Comparable<T>> T max​(T a,
                                                         T b)