public final class LookupProviderSupport extends Object
LookupProvider
instances.Modifier and Type | Method and Description |
---|---|
static LookupMerger<ActionProvider> |
createActionProviderMerger()
Factory method for creating
LookupMerger instance that merges
ActionProvider instances in the project lookup. |
static Lookup |
createCompositeLookup(Lookup baseLookup,
Lookup providers)
Creates a project lookup instance that combines the content from multiple sources.
|
static Lookup |
createCompositeLookup(Lookup baseLookup,
String folderPath)
Creates a project lookup instance that combines the content from multiple sources.
|
static LookupMerger<SharabilityQueryImplementation2> |
createSharabilityQueryMerger()
Factory method for creating
LookupMerger instance that merges
SharabilityQueryImplementation2 instances in the project lookup. |
static LookupMerger<Sources> |
createSourcesMerger()
Factory method for creating
LookupMerger instance that merges
Sources instances in the project lookup. |
public static Lookup createCompositeLookup(Lookup baseLookup, String folderPath)
The pattern Projects/TYPE/Lookup
is conventional for the folder path, and required if
LookupProvider.Registration
,
LookupMerger.Registration
, or
ProjectServiceProvider
are used.
baseLookup
- initial, base content of the project lookup created by the project ownerfolderPath
- the path in the System Filesystem that is used as root for lookup composition, as for Lookups.forPath(java.lang.String)
.
The content of the folder is assumed to be LookupProvider
instances.public static Lookup createCompositeLookup(Lookup baseLookup, Lookup providers)
The pattern Projects/TYPE/Lookup
is conventional for the folder path, and required if
LookupProvider.Registration
,
LookupMerger.Registration
, or
ProjectServiceProvider
are used.
baseLookup
- initial, base content of the project lookup created by the project ownerproviders
- lookup containing the LookupProvider
instances, typically created by aggregating multiple folder paths (see Lookups.forPath(java.lang.String)
)public static LookupMerger<Sources> createSourcesMerger()
LookupMerger
instance that merges
Sources
instances in the project lookup.
Allows to compose the Sources
content from multiple sources.public static LookupMerger<ActionProvider> createActionProviderMerger()
LookupMerger
instance that merges
ActionProvider
instances in the project lookup.
The first ActionProvider
which supports the command and is
enabled on it_will perform it.public static LookupMerger<SharabilityQueryImplementation2> createSharabilityQueryMerger()
LookupMerger
instance that merges
SharabilityQueryImplementation2
instances in the project lookup.
The first non SharabilityQuery.Sharability#UNKNOWN
result returned by the SharabilityQueryImplementation2
s
included in the project's Lookup
is returned.