/** * Initializes a standalone {@code IntactContext} using a memory database. */ public static void initStandaloneContextInMemory() { initStandaloneContextInMemory((ApplicationContext) null); }
/** * Initializes a standalone {@code IntactContext} using a memory database. */ public static void initStandaloneContextInMemory() { initStandaloneContextInMemory((ApplicationContext) null); }
/** * Gets the current (ThreadLocal) instance of {@code IntactContext}. If no such instance exist, * IntAct Core will be automatically initialized using JPA configurations in the classpath, configured * DataConfigs and, if these are not found, using a temporary database. * * @return the IntactContext instance */ public static IntactContext getCurrentInstance() { if (!currentInstanceExists()) { log.warn("Current instance of IntactContext is null. Initializing a context in memory."); initStandaloneContextInMemory(); } return instance; }
/** * Gets the current (ThreadLocal) instance of {@code IntactContext}. If no such instance exist, * IntAct Core will be automatically initialized using JPA configurations in the classpath, configured * DataConfigs and, if these are not found, using a temporary database. * * @return the IntactContext instance */ public static IntactContext getCurrentInstance() { if (!currentInstanceExists()) { log.warn("Current instance of IntactContext is null. Initializing a context in memory."); initStandaloneContextInMemory(); } return instance; }