public class DefaultNWorkspaceFactory extends Object implements NWorkspaceFactory
| Constructor and Description |
|---|
DefaultNWorkspaceFactory(NWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
<T extends NComponent> |
create(Class<T> type) |
<T extends NComponent> |
createAll(Class<T> type) |
<T extends NComponent> |
createAll(Class<T> type,
Class<?>[] argTypes,
Object[] args) |
<T extends NComponent> |
createComponent(Class<T> type,
Object supportCriteria) |
<T extends NComponent> |
createComponents(Class<T> type,
Object supportCriteria) |
<T extends NComponent> |
createFirst(Class<T> type) |
Set<Class<? extends NComponent>> |
discoverTypes(NId id,
URL url,
ClassLoader bootClassLoader) |
Set<Class<? extends NComponent>> |
discoverTypes(NId id,
URL url,
ClassLoader bootClassLoader,
Class<? extends NComponent>[] extensionPoints) |
void |
dump(Class<?> type) |
<T extends NComponent> |
findRegisteredType(Class<T> extensionPoint,
String implementation) |
<T extends NComponent> |
getExtensionObjects(Class<T> extensionPoint) |
<T extends NComponent> |
getExtensionTypes(Class<T> type) |
boolean |
isBootstrapLogType(Class apiType) |
<T extends NComponent> |
isRegisteredInstance(Class<T> extensionPoint,
T implementation) |
<T extends NComponent> |
isRegisteredType(Class<T> extensionPoint,
Class<? extends T> implementationType) |
<T extends NComponent> |
isRegisteredType(Class<T> extensionPoint,
String implementation) |
protected <T> T |
newInstance(Class<T> t,
Class[] argTypes,
Object[] args,
Class apiType) |
<T extends NComponent> |
newInstance(Class<T> t,
Class<? super T> apiType) |
protected <T extends NComponent> |
newInstanceAndLog(Class<? extends T> implementation,
Class<?>[] argTypes,
Object[] args,
Class<T> apiType,
NScopeType scope) |
<T extends NComponent> |
registerInstance(Class<T> extensionPoint,
T implementation) |
<T extends NComponent> |
registerType(Class<T> extensionPoint,
Class<? extends T> implementationType,
NId source) |
protected <T extends NComponent> |
resolveInstance(Class<? extends T> implType,
Class<T> apiType) |
protected <T extends NComponent> |
resolveInstance(Class<? extends T> implementation,
Class<T> apiType,
Class<?>[] argTypes,
Object[] args) |
void |
safeLog(NMsg msg,
Throwable any) |
public DefaultNWorkspaceFactory(NWorkspace ws)
public Set<Class<? extends NComponent>> discoverTypes(NId id, URL url, ClassLoader bootClassLoader)
discoverTypes in interface NWorkspaceFactorypublic Set<Class<? extends NComponent>> discoverTypes(NId id, URL url, ClassLoader bootClassLoader, Class<? extends NComponent>[] extensionPoints)
discoverTypes in interface NWorkspaceFactorypublic <T extends NComponent> NOptional<T> createComponent(Class<T> type, Object supportCriteria)
createComponent in interface NWorkspaceFactorypublic <T extends NComponent> List<T> createComponents(Class<T> type, Object supportCriteria)
createComponents in interface NWorkspaceFactorypublic <T extends NComponent> List<T> createAll(Class<T> type)
createAll in interface NWorkspaceFactorypublic <T extends NComponent> T createFirst(Class<T> type)
createFirst in interface NWorkspaceFactorypublic <T extends NComponent> Set<Class<? extends T>> getExtensionTypes(Class<T> type)
getExtensionTypes in interface NWorkspaceFactorypublic <T extends NComponent> List<T> getExtensionObjects(Class<T> extensionPoint)
getExtensionObjects in interface NWorkspaceFactorypublic <T extends NComponent> boolean isRegisteredType(Class<T> extensionPoint, String implementation)
isRegisteredType in interface NWorkspaceFactorypublic <T extends NComponent> boolean isRegisteredInstance(Class<T> extensionPoint, T implementation)
isRegisteredInstance in interface NWorkspaceFactorypublic <T extends NComponent> void registerInstance(Class<T> extensionPoint, T implementation)
registerInstance in interface NWorkspaceFactorypublic <T extends NComponent> void registerType(Class<T> extensionPoint, Class<? extends T> implementationType, NId source)
registerType in interface NWorkspaceFactorypublic <T extends NComponent> boolean isRegisteredType(Class<T> extensionPoint, Class<? extends T> implementationType)
isRegisteredType in interface NWorkspaceFactorypublic <T extends NComponent> Class<? extends T> findRegisteredType(Class<T> extensionPoint, String implementation)
public <T extends NComponent> T newInstance(Class<T> t, Class<? super T> apiType)
protected <T extends NComponent> T newInstanceAndLog(Class<? extends T> implementation, Class<?>[] argTypes, Object[] args, Class<T> apiType, NScopeType scope)
protected <T extends NComponent> T resolveInstance(Class<? extends T> implType, Class<T> apiType)
public boolean isBootstrapLogType(Class apiType)
protected <T extends NComponent> T resolveInstance(Class<? extends T> implementation, Class<T> apiType, Class<?>[] argTypes, Object[] args)
public <T extends NComponent> T create(Class<T> type)
public <T extends NComponent> List<T> createAll(Class<T> type, Class<?>[] argTypes, Object[] args)
public void dump(Class<?> type)
Copyright © 2025 vpc open source initiative. All rights reserved.