public final class QContextManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSharedContext(String key,
QContextContainer cc)
If the specified container contains a shared context close it.
|
static void |
closeSharedContexts(IQContextContainer cc) |
static QDataContext |
createUnmanagedContext()
Return the DEFAULT unmanaged (manually closed) context factory.
|
static QDataContext |
createUnmanagedContext(String key)
Return the unmanaged (manually closed) context factory.
|
static QDataContext |
getContext(String key,
IQContextContainer cc) |
static QDataContext |
getContext(String key,
QContextContainer cc)
Gets a shared QDataContext from the container.
|
static QDataContextFactory |
getDataContextFactory()
Return the DEFAULT QDataContextFactory.
|
static QDataContextFactory |
getDataContextFactory(String key)
Return the named QDataContextFactory.
|
static QDataContextFactory |
getDataContextFactory(String key,
IQContextContainer container) |
static QDataContextFactory |
getDataContextFactory(String key,
QContextContainer cc)
Get/create a shared context factory.
|
static IQContextFactorySquared |
instance(String key)
Returns the instance of the manager used to satisfy all calls.
|
static void |
setImplementation(String key,
IQContextFactorySquared cm)
Override the default implementation of QContextManager with your own.
|
static void |
setImplementation(String key,
QDataContextFactory factory) |
public static final String DEFAULT
public static void setImplementation(@Nonnull String key, @Nonnull IQContextFactorySquared cm)
cm - public static void setImplementation(@Nonnull String key, @Nonnull QDataContextFactory factory)
@Nonnull public static IQContextFactorySquared instance(@Nonnull String key)
@Nonnull public static QDataContextFactory getDataContextFactory(@Nonnull String key)
@Nonnull public static QDataContextFactory getDataContextFactory()
@Nonnull public static QDataContext createUnmanagedContext(@Nonnull String key) throws Exception
Exception@Nonnull public static QDataContext createUnmanagedContext() throws Exception
key - Exception@Nonnull public static QDataContextFactory getDataContextFactory(@Nonnull String key, @Nonnull QContextContainer cc)
cc - @Nonnull public static QDataContext getContext(@Nonnull String key, @Nonnull QContextContainer cc) throws Exception
Exception@Nonnull public static QDataContext getContext(@Nonnull String key, @Nonnull IQContextContainer cc) throws Exception
Exceptionpublic static void closeSharedContext(@Nonnull String key, @Nonnull QContextContainer cc)
cc - public static void closeSharedContexts(@Nonnull IQContextContainer cc)
@Nonnull public static QDataContextFactory getDataContextFactory(@Nonnull String key, @Nonnull IQContextContainer container)
Copyright © 2017 etc.to. All rights reserved.