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<V>,V> |
createAllSupported(Class<T> type,
V supportCriteria,
net.thevpc.nuts.NutsSession session) |
<T extends net.thevpc.nuts.spi.NutsComponent<V>,V> |
createSupported(Class<T> type,
V supportCriteria,
Class[] constructorParameterTypes,
Object[] constructorParameters,
net.thevpc.nuts.NutsSession session) |
<T extends net.thevpc.nuts.spi.NutsComponent<V>,V> |
createSupported(Class<T> type,
V supportCriteria,
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) |
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,
net.thevpc.nuts.NutsSession session) |
protected <T> T |
instantiate0(Class<T> t,
net.thevpc.nuts.NutsSession session) |
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> baseType,
Class[] argTypes,
Object[] args,
net.thevpc.nuts.NutsSession session) |
protected <T> T |
resolveInstance(Class<T> type,
Class<T> baseType,
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<V>,V> T createSupported(Class<T> type, V supportCriteria, net.thevpc.nuts.NutsSession session)
createSupported in interface NutsWorkspaceFactorypublic <T extends net.thevpc.nuts.spi.NutsComponent<V>,V> T createSupported(Class<T> type, V supportCriteria, Class[] constructorParameterTypes, Object[] constructorParameters, net.thevpc.nuts.NutsSession session)
createSupported in interface NutsWorkspaceFactorypublic <T extends net.thevpc.nuts.spi.NutsComponent<V>,V> List<T> createAllSupported(Class<T> type, V 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 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> T instantiate0(Class<T> t, net.thevpc.nuts.NutsSession session)
protected <T> T instantiate0(Class<T> t, Class[] argTypes, Object[] args, net.thevpc.nuts.NutsSession session)
protected <T> T resolveInstance(Class<T> type, Class<T> baseType, net.thevpc.nuts.NutsSession session)
protected <T> T resolveInstance(Class<T> type, Class<T> baseType, Class[] argTypes, Object[] args, net.thevpc.nuts.NutsSession session)
public <T> T create(Class<T> type, net.thevpc.nuts.NutsSession session)
Copyright © 2021 vpc open source initiative. All rights reserved.