T
- the type of object being merged (see Project.getLookup()
for examples)public interface LookupMerger<T>
LookupProvider
and LookupProviderSupport
The interface is to be implemented by the project owner which decides which contracts make sense to have merged and
how they are to be merged.
The 3rd party LookupProvider
implementors provide instances of mergeableClass.
LookupProviderSupport.createCompositeLookup(org.openide.util.Lookup, java.lang.String)
handles the hiding of individual mergeable instances
and exposing the merged instance created by the LookupMerger
.Modifier and Type | Interface and Description |
---|---|
static interface |
LookupMerger.Registration
Registers a lookup merger for some project types.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getMergeableClass()
Returns a class which is merged by this implementation of LookupMerger
|
T |
merge(Lookup lookup)
Merge instances of the given class in the given lookup and return merged
object which substitutes them.
|