public class DefaultNExtensions extends Object implements NExtensions
| Constructor and Description |
|---|
DefaultNExtensions(NWorkspaceModel wsModel) |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
createAll(Class<T> serviceType) |
<T,V> List<T> |
createAllSupported(Class<T> serviceType,
V criteriaType) |
<T> NOptional<T> |
createComponent(Class<T> type) |
NMutableClassLoader |
createMutableClassLoader(ClassLoader parentClassLoader) |
<T,B> NServiceLoader<T> |
createServiceLoader(Class<T> serviceType,
Class<B> criteriaType) |
<T,B> NServiceLoader<T> |
createServiceLoader(Class<T> serviceType,
Class<B> criteriaType,
ClassLoader classLoader) |
<T,V> NOptional<T> |
createSupported(Class<T> serviceType,
V criteriaType) |
Set<Class<?>> |
discoverTypes(NId id,
ClassLoader classLoader) |
Set<NId> |
getCompanionIds() |
List<NId> |
getConfigExtensions() |
<T> List<T> |
getExtensionObjects(Class<T> extensionPoint) |
<T> Set<Class<? extends T>> |
getExtensionTypes(Class<T> extensionPoint) |
<T> NOptional<NScorable> |
getInstanceScorable(T instance,
Class<T> apiType) |
<T> NScoredValue<T> |
getInstanceScoredValue(T instance,
Class<T> apiType,
NScorableContext scorableContext) |
List<NId> |
getLoadedExtensions() |
DefaultNWorkspaceExtensionModel |
getModel() |
<T> NOptional<NScorable> |
getTypeScorable(Class<? extends T> implType,
Class<T> apiType) |
<T> NScoredValue<T> |
getTypeScoredValue(Class<? extends T> implType,
Class<T> apiType,
NScorableContext scorableContext) |
<T extends NComponent> |
installWorkspaceExtensionComponent(Class<T> extensionPointType,
T extensionImpl) |
boolean |
isExcludedExtension(String extensionId,
NWorkspaceOptions options) |
boolean |
isLoadedExtensions(NId id) |
boolean |
isLoadedId(NId id) |
boolean |
isLoadedId(NId id,
ClassLoader classLoader) |
<T> boolean |
isRegisteredInstance(Class<T> extensionPointType,
T extensionImpl) |
<T> boolean |
isRegisteredType(Class<T> extensionPointType,
Class<? extends T> implementation) |
<T> boolean |
isRegisteredType(Class<T> extensionPointType,
String name) |
NExtensions |
loadExtension(NId extension) |
<T> boolean |
registerInstance(Class<T> extensionPointType,
T extensionImpl) |
<T> boolean |
registerType(Class<T> extensionPointType,
Class<? extends T> implementation,
NId source) |
NExtensions |
unloadExtension(NId extension) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, of, ofpublic DefaultNExtensions(NWorkspaceModel wsModel)
public DefaultNWorkspaceExtensionModel getModel()
public Set<NId> getCompanionIds()
getCompanionIds in interface NExtensionspublic <T extends NComponent> boolean installWorkspaceExtensionComponent(Class<T> extensionPointType, T extensionImpl)
installWorkspaceExtensionComponent in interface NExtensionspublic Set<Class<?>> discoverTypes(NId id, ClassLoader classLoader)
discoverTypes in interface NExtensionspublic <T,B> NServiceLoader<T> createServiceLoader(Class<T> serviceType, Class<B> criteriaType)
createServiceLoader in interface NExtensionspublic <T,B> NServiceLoader<T> createServiceLoader(Class<T> serviceType, Class<B> criteriaType, ClassLoader classLoader)
createServiceLoader in interface NExtensionspublic NMutableClassLoader createMutableClassLoader(ClassLoader parentClassLoader)
createMutableClassLoader in interface NExtensionspublic <T> NOptional<NScorable> getTypeScorable(Class<? extends T> implType, Class<T> apiType)
getTypeScorable in interface NExtensionspublic <T> NOptional<NScorable> getInstanceScorable(T instance, Class<T> apiType)
getInstanceScorable in interface NExtensionspublic <T> NScoredValue<T> getTypeScoredValue(Class<? extends T> implType, Class<T> apiType, NScorableContext scorableContext)
getTypeScoredValue in interface NExtensionspublic <T> NScoredValue<T> getInstanceScoredValue(T instance, Class<T> apiType, NScorableContext scorableContext)
getInstanceScoredValue in interface NExtensionspublic <T> NOptional<T> createComponent(Class<T> type)
createComponent in interface NExtensionspublic <T,V> NOptional<T> createSupported(Class<T> serviceType, V criteriaType)
createSupported in interface NExtensionspublic <T,V> List<T> createAllSupported(Class<T> serviceType, V criteriaType)
createAllSupported in interface NExtensionspublic <T> List<T> createAll(Class<T> serviceType)
createAll in interface NExtensionspublic <T> Set<Class<? extends T>> getExtensionTypes(Class<T> extensionPoint)
getExtensionTypes in interface NExtensionspublic <T> List<T> getExtensionObjects(Class<T> extensionPoint)
getExtensionObjects in interface NExtensionspublic <T> boolean isRegisteredType(Class<T> extensionPointType, String name)
isRegisteredType in interface NExtensionspublic <T> boolean isRegisteredInstance(Class<T> extensionPointType, T extensionImpl)
isRegisteredInstance in interface NExtensionspublic <T> boolean registerInstance(Class<T> extensionPointType, T extensionImpl)
registerInstance in interface NExtensionspublic <T> boolean registerType(Class<T> extensionPointType, Class<? extends T> implementation, NId source)
registerType in interface NExtensionspublic <T> boolean isRegisteredType(Class<T> extensionPointType, Class<? extends T> implementation)
isRegisteredType in interface NExtensionspublic boolean isLoadedExtensions(NId id)
isLoadedExtensions in interface NExtensionspublic boolean isLoadedId(NId id)
isLoadedId in interface NExtensionspublic boolean isLoadedId(NId id, ClassLoader classLoader)
isLoadedId in interface NExtensionspublic List<NId> getLoadedExtensions()
getLoadedExtensions in interface NExtensionspublic NExtensions loadExtension(NId extension)
loadExtension in interface NExtensionspublic NExtensions unloadExtension(NId extension)
unloadExtension in interface NExtensionspublic List<NId> getConfigExtensions()
getConfigExtensions in interface NExtensionspublic boolean isExcludedExtension(String extensionId, NWorkspaceOptions options)
isExcludedExtension in interface NExtensionsCopyright © 2026 vpc open source initiative. All rights reserved.