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