public class DefaultNutsElementFactoryService extends Object implements NutsElementFactoryService
| Constructor and Description |
|---|
DefaultNutsElementFactoryService(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
static net.thevpc.nuts.NutsArrayElement |
_createArray1(Object array,
net.thevpc.nuts.NutsElementFactoryContext context) |
static List<Object> |
_destructArray1(Object array,
net.thevpc.nuts.NutsElementFactoryContext context) |
void |
addDefaultMapper(Class cls,
net.thevpc.nuts.NutsElementMapper instance) |
net.thevpc.nuts.NutsElement |
createElement(Object o,
Type expectedType,
net.thevpc.nuts.NutsElementFactoryContext context) |
protected net.thevpc.nuts.NutsElement |
createElement(Object o,
Type expectedType,
net.thevpc.nuts.NutsElementFactoryContext context,
boolean defaultOnly) |
Object |
createObject(net.thevpc.nuts.NutsElement o,
Type to,
net.thevpc.nuts.NutsElementFactoryContext context) |
protected Object |
createObject(net.thevpc.nuts.NutsElement o,
Type to,
net.thevpc.nuts.NutsElementFactoryContext context,
boolean defaultOnly) |
net.thevpc.nuts.NutsElement |
defaultCreateElement(Object o,
Type expectedType,
net.thevpc.nuts.NutsElementFactoryContext context) |
Object |
defaultCreateObject(net.thevpc.nuts.NutsElement o,
Type to,
net.thevpc.nuts.NutsElementFactoryContext context) |
Object |
defaultDestruct(Object o,
Type expectedType,
net.thevpc.nuts.NutsElementFactoryContext context) |
Object |
destruct(Object o,
Type expectedType,
net.thevpc.nuts.NutsElementFactoryContext context) |
protected Object |
destruct(Object o,
Type expectedType,
net.thevpc.nuts.NutsElementFactoryContext context,
boolean defaultOnly) |
net.thevpc.nuts.NutsElementMapper |
getMapper(Type type,
boolean defaultOnly) |
ReflectRepository |
getTypesRepository() |
void |
setCoreMapper(Class cls,
net.thevpc.nuts.NutsElementMapper instance) |
void |
setMapper(Class cls,
net.thevpc.nuts.NutsElementMapper instance) |
public DefaultNutsElementFactoryService(net.thevpc.nuts.NutsWorkspace ws,
net.thevpc.nuts.NutsSession session)
public final void addDefaultMapper(Class cls, net.thevpc.nuts.NutsElementMapper instance)
public final void setCoreMapper(Class cls, net.thevpc.nuts.NutsElementMapper instance)
public final void setMapper(Class cls, net.thevpc.nuts.NutsElementMapper instance)
public net.thevpc.nuts.NutsElementMapper getMapper(Type type, boolean defaultOnly)
protected Object createObject(net.thevpc.nuts.NutsElement o, Type to, net.thevpc.nuts.NutsElementFactoryContext context, boolean defaultOnly)
public Object createObject(net.thevpc.nuts.NutsElement o, Type to, net.thevpc.nuts.NutsElementFactoryContext context)
createObject in interface NutsElementFactoryServicepublic Object defaultCreateObject(net.thevpc.nuts.NutsElement o, Type to, net.thevpc.nuts.NutsElementFactoryContext context)
defaultCreateObject in interface NutsElementFactoryServiceprotected Object destruct(Object o, Type expectedType, net.thevpc.nuts.NutsElementFactoryContext context, boolean defaultOnly)
public Object destruct(Object o, Type expectedType, net.thevpc.nuts.NutsElementFactoryContext context)
destruct in interface NutsElementFactoryServicepublic Object defaultDestruct(Object o, Type expectedType, net.thevpc.nuts.NutsElementFactoryContext context)
defaultDestruct in interface NutsElementFactoryServiceprotected net.thevpc.nuts.NutsElement createElement(Object o, Type expectedType, net.thevpc.nuts.NutsElementFactoryContext context, boolean defaultOnly)
public net.thevpc.nuts.NutsElement createElement(Object o, Type expectedType, net.thevpc.nuts.NutsElementFactoryContext context)
createElement in interface NutsElementFactoryServicepublic net.thevpc.nuts.NutsElement defaultCreateElement(Object o, Type expectedType, net.thevpc.nuts.NutsElementFactoryContext context)
defaultCreateElement in interface NutsElementFactoryServicepublic ReflectRepository getTypesRepository()
public static List<Object> _destructArray1(Object array, net.thevpc.nuts.NutsElementFactoryContext context)
public static net.thevpc.nuts.NutsArrayElement _createArray1(Object array, net.thevpc.nuts.NutsElementFactoryContext context)
Copyright © 2022 vpc open source initiative. All rights reserved.