public class DefaultNutsWorkspaceFactory extends Object implements NutsWorkspaceFactory
| Constructor and Description |
|---|
DefaultNutsWorkspaceFactory(net.thevpc.nuts.NutsWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Class<T> type,
net.thevpc.nuts.NutsSession session) |
<T> List<T> |
createAll(Class<T> type,
Class[] argTypes,
Object[] args,
net.thevpc.nuts.NutsSession session) |
<T> List<T> |
createAll(Class<T> type,
net.thevpc.nuts.NutsSession session) |
<T extends net.thevpc.nuts.spi.NutsComponent> |
createAllSupported(Class<T> type,
Object supportCriteria,
net.thevpc.nuts.NutsSession session) |
<T> T |
createFirst(Class<T> type,
net.thevpc.nuts.NutsSession session) |
<T extends net.thevpc.nuts.spi.NutsComponent> |
createSupported(Class<T> type,
Object supportCriteria,
boolean required,
net.thevpc.nuts.NutsSession session) |
Set<Class> |
discoverTypes(net.thevpc.nuts.NutsId id,
URL url,
ClassLoader bootClassLoader,
Class[] extensionPoints,
net.thevpc.nuts.NutsSession session) |
Set<Class> |
discoverTypes(net.thevpc.nuts.NutsId id,
URL url,
ClassLoader bootClassLoader,
net.thevpc.nuts.NutsSession session) |
Class |
findRegisteredType(Class extensionPoint,
String implementation,
net.thevpc.nuts.NutsSession session) |
protected <T> net.thevpc.nuts.runtime.standalone.workspace.DefaultNutsWorkspaceFactory.CachedConstructor<T> |
getCtrl0(Class<T> t,
net.thevpc.nuts.NutsSession session) |
List<Object> |
getExtensionObjects(Class extensionPoint) |
Set<Class> |
getExtensionTypes(Class type,
net.thevpc.nuts.NutsSession session) |
protected <T> T |
instantiate0(Class<T> t,
Class[] argTypes,
Object[] args,
Class apiType,
net.thevpc.nuts.NutsSession session) |
protected <T> T |
instantiate0(Class<T> t,
net.thevpc.nuts.NutsSession session,
Class apiType) |
boolean |
isBootstrapLogType(Class apiType) |
boolean |
isRegisteredInstance(Class extensionPoint,
Object implementation,
net.thevpc.nuts.NutsSession session) |
boolean |
isRegisteredType(Class extensionPoint,
Class implementation,
net.thevpc.nuts.NutsSession session) |
boolean |
isRegisteredType(Class extensionPoint,
String implementation,
net.thevpc.nuts.NutsSession session) |
<T> void |
registerInstance(Class<T> extensionPoint,
T implementation,
net.thevpc.nuts.NutsSession session) |
void |
registerType(Class extensionPoint,
Class implementation,
net.thevpc.nuts.NutsId source,
net.thevpc.nuts.NutsSession session) |
protected <T> T |
resolveInstance(Class<T> type,
Class<T> apiType,
Class[] argTypes,
Object[] args,
net.thevpc.nuts.NutsSession session) |
protected <T> T |
resolveInstance(Class<T> implType,
Class<T> apiType,
net.thevpc.nuts.NutsSession session) |
void |
safeLog(net.thevpc.nuts.NutsMessage msg,
Throwable any,
net.thevpc.nuts.NutsSession session) |
public DefaultNutsWorkspaceFactory(net.thevpc.nuts.NutsWorkspace ws)
public Set<Class> discoverTypes(net.thevpc.nuts.NutsId id, URL url, ClassLoader bootClassLoader, net.thevpc.nuts.NutsSession session)
discoverTypes in interface NutsWorkspaceFactorypublic Set<Class> discoverTypes(net.thevpc.nuts.NutsId id, URL url, ClassLoader bootClassLoader, Class[] extensionPoints, net.thevpc.nuts.NutsSession session)
discoverTypes in interface NutsWorkspaceFactorypublic <T extends net.thevpc.nuts.spi.NutsComponent> T createSupported(Class<T> type, Object supportCriteria, boolean required, net.thevpc.nuts.NutsSession session)
createSupported in interface NutsWorkspaceFactorypublic <T extends net.thevpc.nuts.spi.NutsComponent> List<T> createAllSupported(Class<T> type, Object supportCriteria, net.thevpc.nuts.NutsSession session)
createAllSupported in interface NutsWorkspaceFactorypublic <T> List<T> createAll(Class<T> type, net.thevpc.nuts.NutsSession session)
createAll in interface NutsWorkspaceFactorypublic <T> T createFirst(Class<T> type, net.thevpc.nuts.NutsSession session)
createFirst in interface NutsWorkspaceFactorypublic Set<Class> getExtensionTypes(Class type, net.thevpc.nuts.NutsSession session)
getExtensionTypes in interface NutsWorkspaceFactorypublic List<Object> getExtensionObjects(Class extensionPoint)
getExtensionObjects in interface NutsWorkspaceFactorypublic boolean isRegisteredType(Class extensionPoint, String implementation, net.thevpc.nuts.NutsSession session)
isRegisteredType in interface NutsWorkspaceFactorypublic boolean isRegisteredInstance(Class extensionPoint, Object implementation, net.thevpc.nuts.NutsSession session)
isRegisteredInstance in interface NutsWorkspaceFactorypublic <T> void registerInstance(Class<T> extensionPoint, T implementation, net.thevpc.nuts.NutsSession session)
registerInstance in interface NutsWorkspaceFactorypublic void registerType(Class extensionPoint, Class implementation, net.thevpc.nuts.NutsId source, net.thevpc.nuts.NutsSession session)
registerType in interface NutsWorkspaceFactorypublic boolean isRegisteredType(Class extensionPoint, Class implementation, net.thevpc.nuts.NutsSession session)
isRegisteredType in interface NutsWorkspaceFactorypublic Class findRegisteredType(Class extensionPoint, String implementation, net.thevpc.nuts.NutsSession session)
protected <T> net.thevpc.nuts.runtime.standalone.workspace.DefaultNutsWorkspaceFactory.CachedConstructor<T> getCtrl0(Class<T> t, net.thevpc.nuts.NutsSession session)
protected <T> T instantiate0(Class<T> t, net.thevpc.nuts.NutsSession session, Class apiType)
protected <T> T instantiate0(Class<T> t, Class[] argTypes, Object[] args, Class apiType, net.thevpc.nuts.NutsSession session)
protected <T> T resolveInstance(Class<T> implType, Class<T> apiType, net.thevpc.nuts.NutsSession session)
public void safeLog(net.thevpc.nuts.NutsMessage msg,
Throwable any,
net.thevpc.nuts.NutsSession session)
public boolean isBootstrapLogType(Class apiType)
protected <T> T resolveInstance(Class<T> type, Class<T> apiType, Class[] argTypes, Object[] args, net.thevpc.nuts.NutsSession session)
public <T> T create(Class<T> type, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.