Package org.milyn.container

Examples of org.milyn.container.ApplicationContext


                    if(resultSetScope == ResultSetScope.EXECUTION) {
                        beanContext.addBean(resultSetBeanId, statementExec.executeUnjoinedQuery(connection), source);
                    } else {
                        List<Map<String, Object>> resultMap;
                        // Cached in the application context...
                        ApplicationContext appContext = executionContext.getContext();
                        ResultSetContextObject rsContextObj = ResultSetContextObject.getInstance(rsAppContextKey, appContext);

                        if(rsContextObj.hasExpired()) {
                            synchronized (rsContextObj) {
                                if(rsContextObj.hasExpired()) {
View Full Code Here


public class NamespaceMappingsTest extends TestCase {

  public void test_01() throws IOException, SAXException {
    Smooks smooks = new Smooks(getClass().getResourceAsStream("config-01.xml"));   
    ExecutionContext execContext = smooks.createExecutionContext();
    ApplicationContext appContext = execContext.getContext();
    Properties mappings = NamespaceMappings.getMappings(appContext);

    assertEquals("http://a", mappings.getProperty("a"));
    assertEquals("http://b", mappings.getProperty("b"));
    assertEquals("http://c", mappings.getProperty("c"));
View Full Code Here

TOP

Related Classes of org.milyn.container.ApplicationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.