Examples of loadContext()


Examples of org.jibx.binding.classes.UnmarshalBuilder.loadContext()

            if (!m_fakeContent) {
                m_component.genContentUnmarshal(meth);
            }
           
            // pop object from unmarshal stack
            meth.loadContext();
            meth.appendCallVirtual(UNMARSHAL_POPOBJECTMETHOD,
                POPOBJECT_SIGNATURE);
           
            // if postset method supplied and no attributes add code to call
            if (m_postSetMethod != null) {
View Full Code Here

Examples of org.jibx.binding.classes.UnmarshalBuilder.loadContext()

                meth.loadObject();
                genUserMethodCall(true, m_preSetMethod, meth);
            }
           
            // push object being unmarshalled to unmarshaller stack
            meth.loadContext();
            meth.loadObject();
            meth.appendCallVirtual(UNMARSHAL_PUSHTRACKEDOBJECTMETHOD,
                PUSHOBJECT_SIGNATURE);
           
            // generate the actual unmarshalling code in method
View Full Code Here

Examples of org.jibx.binding.classes.UnmarshalBuilder.loadContext()

            // generate the actual unmarshalling code in method
            meth.loadObject();
            m_component.genAttributeUnmarshal(meth);
           
            // pop object from unmarshal stack
            meth.loadContext();
            meth.appendCallVirtual(UNMARSHAL_POPOBJECTMETHOD,
                POPOBJECT_SIGNATURE);
           
            // if postset method supplied and no content add code to call it
            if (m_postSetMethod != null && !hasContent()) {
View Full Code Here

Examples of org.springframework.security.web.context.HttpSessionSecurityContextRepository.loadContext()

    }

    private void login(Authentication auth) {
        HttpSessionSecurityContextRepository repo = new HttpSessionSecurityContextRepository();
        HttpRequestResponseHolder requestResponseHolder = new HttpRequestResponseHolder(request, response);
        repo.loadContext(requestResponseHolder);

        SecurityContextImpl securityContextImpl = new SecurityContextImpl();
        securityContextImpl.setAuthentication(auth);
        repo.saveContext(securityContextImpl, requestResponseHolder.getRequest(), requestResponseHolder.getResponse());
    }
View Full Code Here

Examples of org.springframework.security.web.context.HttpSessionSecurityContextRepository.loadContext()

    }

    private void login(Authentication auth) {
        HttpSessionSecurityContextRepository repo = new HttpSessionSecurityContextRepository();
        HttpRequestResponseHolder requestResponseHolder = new HttpRequestResponseHolder(request, response);
        repo.loadContext(requestResponseHolder);

        SecurityContextImpl securityContextImpl = new SecurityContextImpl();
        securityContextImpl.setAuthentication(auth);
        repo.saveContext(securityContextImpl, requestResponseHolder.getRequest(), requestResponseHolder.getResponse());
    }
View Full Code Here

Examples of org.springframework.security.web.context.SecurityContextRepository.loadContext()

            HttpServletResponse response = new MockHttpServletResponse();

            HttpRequestResponseHolder requestResponseHolder = new HttpRequestResponseHolder(
                    request, response);
            securityContextRepository.loadContext(requestResponseHolder);

            request = requestResponseHolder.getRequest();
            response = requestResponseHolder.getResponse();

            securityContextRepository.saveContext(securityContext, request,
View Full Code Here

Examples of org.springframework.security.web.context.SecurityContextRepository.loadContext()

    private static abstract class AuthenticationMatcher<T extends AuthenticationMatcher<T>> implements ResultMatcher {

        protected SecurityContext load(MvcResult result) {
            HttpRequestResponseHolder holder = new HttpRequestResponseHolder(result.getRequest(), result.getResponse());
            SecurityContextRepository repository = WebTestUtils.getSecurityContextRepository(result.getRequest());
            return repository.loadContext(holder);
        }
    }

    /**
     * A {@link MockMvc} {@link ResultMatcher} that verifies a specific user is
View Full Code Here

Examples of org.springframework.test.context.support.GenericXmlContextLoader.loadContext()


    protected void setupBeforeInitDispatcher() throws Exception {
        //init context
        GenericXmlContextLoader xmlContextLoader = new GenericXmlContextLoader();
        applicationContext = xmlContextLoader.loadContext(getContextLocations());
        servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, applicationContext);
    }

    protected String getContextLocations() {
        return DEFAULT_CONTEXT_LOCATION;
View Full Code Here

Examples of org.springframework.test.context.support.GenericXmlContextLoader.loadContext()

    protected void setupBeforeInitDispatcher() throws Exception {
        // only load beans from spring once
        if (applicationContext == null) {
            GenericXmlContextLoader xmlContextLoader = new GenericXmlContextLoader();
            applicationContext = xmlContextLoader.loadContext(getContextLocations());
        }

        servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, applicationContext);
    }
View Full Code Here

Examples of org.springframework.test.context.support.GenericXmlContextLoader.loadContext()

    protected void setupBeforeInitDispatcher() throws Exception {
        // only load beans from spring once
        if (applicationContext == null) {
            GenericXmlContextLoader xmlContextLoader = new GenericXmlContextLoader();
            applicationContext = xmlContextLoader.loadContext(getContextLocations());
        }

        servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, applicationContext);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.