/** * Initializes a standalone context. */ public static void initContext(String[] configurationResourcePaths) { initContext(configurationResourcePaths, null); }
/** * Initializes a standalone context. */ public static void initContext(String[] configurationResourcePaths) { initContext(configurationResourcePaths, null); }
public static void initStandaloneContextInMemory(ApplicationContext parent) { initContext(new String[]{"classpath*:/META-INF/standalone/*-standalone.spring.xml"}, parent); }
public static void initStandaloneContextInMemory(ApplicationContext parent) { initContext(new String[]{"classpath*:/META-INF/standalone/*-standalone.spring.xml"}, parent); }
/** * Initializes a standalone {@code IntactContext} using a memory database. */ public static void initStandaloneContextInMemory(IntactConfiguration config) { ConfigurableApplicationContext parent = new GenericApplicationContext(); parent.getBeanFactory().registerSingleton("intactConfig", config); parent.refresh(); initContext(new String[]{"classpath*:/META-INF/standalone/jpa-standalone.spring.xml", "classpath*:/META-INF/standalone/intact-standalone.spring.xml"}, parent); }
/** * Initializes a standalone {@code IntactContext} using a memory database. */ public static void initStandaloneContextInMemory(IntactConfiguration config) { ConfigurableApplicationContext parent = new GenericApplicationContext(); parent.getBeanFactory().registerSingleton("intactConfig", config); parent.refresh(); initContext(new String[]{"classpath*:/META-INF/standalone/jpa-standalone.spring.xml", "classpath*:/META-INF/standalone/intact-standalone.spring.xml"}, parent); }
IntactContext.initContext( new String[]{"/META-INF/"+ database +".spring.xml"} );