Class ComponentRegistryKey


  • final class ComponentRegistryKey
    extends java.lang.Object
    The ComponentRegistryKey is used as the key in the component registry to register components by their names.

    Two instances of this class are equal if they are the same or if there component name and bundle ID is equal.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long bundleId  
      private java.lang.String componentName  
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentRegistryKey​(org.osgi.framework.Bundle bundle, java.lang.String componentName)  
    • Field Detail

      • bundleId

        private final long bundleId
      • componentName

        private final java.lang.String componentName
    • Constructor Detail

      • ComponentRegistryKey

        ComponentRegistryKey​(org.osgi.framework.Bundle bundle,
                             java.lang.String componentName)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getBundleId

        public long getBundleId()
      • getComponentName

        public java.lang.String getComponentName()