public final class LogicContextImpl extends Object implements ILogicContext
| Constructor and Description |
|---|
LogicContextImpl(QDataContext dataContext)
Create and set the default data context to use.
|
LogicContextImpl(QDataContext dataContext,
ILogiInjector injector) |
| Modifier and Type | Method and Description |
|---|---|
QDataContext |
dc()
Return the default QDataContext.
|
<L> L |
get(Class<L> classClass)
Get the shared instance for the "Class of Xxxx" business logic, handling concepts for all instances of Xxxx.
|
<L extends ILogic> |
get(Class<L> clz,
Object reference) |
<L extends ILogic,K,T extends IIdentifyable<K>> |
get(Class<L> clz,
T instance)
Find/create the specified logic wrapper for instance.
|
ProblemModel |
getErrorModel() |
<T extends ILogic,K,V extends IIdentifyable<K>> |
register(Class<?> registrationType,
T logicClass,
V dataClass)
Register an instance of a logic implementation for a given instance, when a new instance has been created.
|
public LogicContextImpl(@Nonnull QDataContext dataContext)
dataContext - public LogicContextImpl(@Nonnull QDataContext dataContext, @Nonnull ILogiInjector injector)
@Nonnull public QDataContext dc()
dc in interface ILogicContext@Nonnull public <L> L get(@Nonnull Class<L> classClass) throws Exception
get in interface ILogicContextclassClass - Exception@Nonnull public <L extends ILogic,K,T extends IIdentifyable<K>> L get(@Nonnull Class<L> clz, @Nonnull T instance) throws Exception
get in interface ILogicContextclz - instance - Exceptionpublic <L extends ILogic> L get(@Nonnull Class<L> clz, @Nonnull Object reference) throws Exception
get in interface ILogicContextExceptionpublic <T extends ILogic,K,V extends IIdentifyable<K>> void register(Class<?> registrationType, T logicClass, V dataClass)
register in interface ILogicContextT - K - V - registrationType - logicClass - dataClass - @Nonnull public ProblemModel getErrorModel()
getErrorModel in interface ILogicContextCopyright © 2017 etc.to. All rights reserved.