Package org.apache.beehive.controls.api.context

Examples of org.apache.beehive.controls.api.context.ControlBeanContext


            new InternalConcurrentHashMap/*< String, Map< Field, PropertyMap > >*/();
   
    public static void initializeControlContext( HttpServletRequest request, HttpServletResponse response,
                                                 ServletContext servletContext )
    {
        ControlBeanContext beanContext = getControlBeanContext( request, response, servletContext, true );

        //
        // Start a new execution context
        //
        if ( beanContext instanceof ServletBeanContext )
View Full Code Here


    public static void uninitializeControlContext( HttpServletRequest request, HttpServletResponse response,
                                                   ServletContext servletContext )
    {
       
        ControlBeanContext beanContext = getControlBeanContext( request, response, servletContext, false );
       
        if ( beanContext instanceof ServletBeanContext )
        {
            ( ( ServletBeanContext ) beanContext ).endContext();
        }
View Full Code Here

    {
        //
        // Retrieve the control bean context from the request, and if it's not there, from the session.
        // Using the request first ensures that we don't get confused by session invalidation.
        //
        ControlBeanContext beanContext = ( ControlBeanContext ) request.getAttribute( CONTROL_CONTEXT_CLASSNAME );
        if ( beanContext != null ) return beanContext;
       
        HttpSession session = request.getSession( false );
        if ( session != null )
        {
View Full Code Here

        //
        Map controlFields = getAccessibleControlFieldAnnotations( controlClientClass, servletContext );
        if ( controlFields.isEmpty() ) return;

        request = PageFlowUtils.unwrapMultipart( request );
        ControlBeanContext beanContext = getControlBeanContext( request, response, servletContext, false );
        assert beanContext != null : "ControlBeanContext was not initialized by PageFlowRequestProcessor";
        try
        {
            Controls.initializeClient(null, controlClient, beanContext);
        }
View Full Code Here

            new InternalConcurrentHashMap/*< String, Map< Field, PropertyMap > >*/();
   
    public static void initializeControlContext( HttpServletRequest request, HttpServletResponse response,
                                                 ServletContext servletContext )
    {
        ControlBeanContext beanContext = getControlBeanContext( request, response, servletContext, true );

        //
        // Start a new execution context
        //
        if ( beanContext instanceof ServletBeanContext )
View Full Code Here

    public static void uninitializeControlContext( HttpServletRequest request, HttpServletResponse response,
                                                   ServletContext servletContext )
    {
       
        ControlBeanContext beanContext = getControlBeanContext( request, response, servletContext, false );
       
        if ( beanContext instanceof ServletBeanContext )
        {
            ( ( ServletBeanContext ) beanContext ).endContext();
        }
View Full Code Here

    {
        //
        // Retrieve the control bean context from the request, and if it's not there, from the session.
        // Using the request first ensures that we don't get confused by session invalidation.
        //
        ControlBeanContext beanContext = ( ControlBeanContext ) request.getAttribute( CONTROL_CONTEXT_CLASSNAME );
        if ( beanContext != null ) return beanContext;
       
        HttpSession session = request.getSession( false );
        if ( session != null )
        {
View Full Code Here

        Class controlClientClass = controlClient.getClass();
        Map controlFields = getAccessibleControlFieldAnnotations( controlClientClass, servletContext );
        if ( controlFields.isEmpty() ) return;

        request = PageFlowUtils.unwrapMultipart( request );
        ControlBeanContext beanContext = getControlBeanContext( request, response, servletContext, false );
        assert beanContext != null : "ControlBeanContext was not initialized by PageFlowRequestProcessor";
        try
        {
            Controls.initializeClient(null, controlClient, beanContext);
        }
View Full Code Here

        request = PageFlowUtils.unwrapMultipart( request );

        PageFlowControlContainer pfcc = PageFlowControlContainerFactory.getControlContainer(request,servletContext);
        pfcc.createAndBeginControlBeanContext(controlClient,request,response,servletContext);
        ControlBeanContext beanContext = pfcc.getControlContainerContext(controlClient);
        assert beanContext != null : "ControlBeanContext was not initialized by PageFlowRequestProcessor";

        try
        {
            if (LOG.isDebugEnabled()) {
View Full Code Here

    {
        org.apache.beehive.controls.system.jndi.impl.JndiControlImpl __bc_impl = (org.apache.beehive.controls.system.jndi.impl.JndiControlImpl)target;
       
        super.initServices(bean, __bc_impl);
       
        ControlBeanContext __bc_beanContext = bean.getControlBeanContext();
        try
        {
            org.apache.beehive.controls.api.context.ControlBeanContext __context = __bc_beanContext;
            if (__context == null)
            throw new ControlException("Contextual service org.apache.beehive.controls.api.context.ControlBeanContext is not available");
View Full Code Here

TOP

Related Classes of org.apache.beehive.controls.api.context.ControlBeanContext

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.