Class AggregatingDescriptors
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.descriptors.AggregatingDescriptors
-
- All Implemented Interfaces:
org.apache.jackrabbit.oak.api.Descriptors
public class AggregatingDescriptors extends java.lang.Object implements org.apache.jackrabbit.oak.api.Descriptors
An AggregatingDescriptors is an implementation of Descriptors that allows to aggregate multiple Descriptors (which are provided dynamically via a whiteboard tracker).
-
-
Constructor Summary
Constructors Constructor Description AggregatingDescriptors(Tracker<org.apache.jackrabbit.oak.api.Descriptors> tracker)
Create an AggregatingDescriptors which uses descriptors.getServices() at method invocation time
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getKeys()
@Nullable javax.jcr.Value
getValue(@NotNull java.lang.String key)
@Nullable javax.jcr.Value[]
getValues(@NotNull java.lang.String key)
boolean
isSingleValueDescriptor(@NotNull java.lang.String key)
boolean
isStandardDescriptor(@NotNull java.lang.String key)
-
-
-
Constructor Detail
-
AggregatingDescriptors
public AggregatingDescriptors(Tracker<org.apache.jackrabbit.oak.api.Descriptors> tracker)
Create an AggregatingDescriptors which uses descriptors.getServices() at method invocation time
-
-
Method Detail
-
getKeys
public java.lang.String[] getKeys()
- Specified by:
getKeys
in interfaceorg.apache.jackrabbit.oak.api.Descriptors
-
isStandardDescriptor
public boolean isStandardDescriptor(@NotNull @NotNull java.lang.String key)
- Specified by:
isStandardDescriptor
in interfaceorg.apache.jackrabbit.oak.api.Descriptors
-
isSingleValueDescriptor
public boolean isSingleValueDescriptor(@NotNull @NotNull java.lang.String key)
- Specified by:
isSingleValueDescriptor
in interfaceorg.apache.jackrabbit.oak.api.Descriptors
-
getValue
@Nullable public @Nullable javax.jcr.Value getValue(@NotNull @NotNull java.lang.String key)
- Specified by:
getValue
in interfaceorg.apache.jackrabbit.oak.api.Descriptors
-
getValues
@Nullable public @Nullable javax.jcr.Value[] getValues(@NotNull @NotNull java.lang.String key)
- Specified by:
getValues
in interfaceorg.apache.jackrabbit.oak.api.Descriptors
-
-