java.lang.Object
java.lang.Enum<CollectionType>
org.osgi.service.component.annotations.CollectionType
????????:
Serializable, Comparable<CollectionType>

public enum CollectionType extends Enum<CollectionType>
Collection types for the Reference annotation.
???????:
1.4
  • ??????

    ????
    ????
    ??
    The properties collection type is used to indicate the collection holds unmodifiable Maps containing the service properties of the bound services.
    The reference collection type is used to indicate the collection holds Service References for the bound services.
    The service collection type is used to indicate the collection holds the bound service objects.
    The serviceobjects collection type is used to indicate the collection holds Component Service Objects for the bound services.
    The tuple collection type is used to indicate the collection holds unmodifiable Map.Entries whose key is an unmodifiable Map containing the service properties of the bound service, as specified in PROPERTIES, and whose value is the bound service object.
  • ????

    ??????
    ??
    ??
     
    ?????????????????? ??????????????????? ????????(?????? ??????)
    ???????????????, ??????????????

    ??????? java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • ????????

    • SERVICE

      public static final CollectionType SERVICE
      The service collection type is used to indicate the collection holds the bound service objects.

      This is the default collection type.

    • REFERENCE

      public static final CollectionType REFERENCE
      The reference collection type is used to indicate the collection holds Service References for the bound services.
    • SERVICEOBJECTS

      public static final CollectionType SERVICEOBJECTS
      The serviceobjects collection type is used to indicate the collection holds Component Service Objects for the bound services.
    • PROPERTIES

      public static final CollectionType PROPERTIES
      The properties collection type is used to indicate the collection holds unmodifiable Maps containing the service properties of the bound services.

      The Maps must implement Comparable with the compareTo method comparing service property maps using the same ordering as ServiceReference.compareTo based upon service ranking and service id.

    • TUPLE

      public static final CollectionType TUPLE
      The tuple collection type is used to indicate the collection holds unmodifiable Map.Entries whose key is an unmodifiable Map containing the service properties of the bound service, as specified in PROPERTIES, and whose value is the bound service object.

      The Map.Entries must implement Comparable with the compareTo method comparing service property maps using the same ordering as ServiceReference.compareTo based upon service ranking and service id.

  • ??????