Examples of JellySession


Examples of org.apache.maven.werkz.jelly.JellySession

        // TODO: shouldn't this be a stack too? Then session attribute not needed
        transientMapper = new GoalToJellyScriptHousingMapper();

        // Create the Jelly session
        Session session = new JellySession( baseContext.getXMLOutput() );
        session.setAttribute( BASE_CONTEXT, baseContext );
        session.setAttribute( PLUGIN_MANAGER, this );
        session.setAttribute( GOAL_MAPPER, transientMapper );

        // add the global session to the pluginContext so that it can be used by tags
        baseContext.setVariable( GLOBAL_SESSION_KEY, session );

        // Execution of the Jelly scripts:
View Full Code Here

Examples of org.apache.maven.werkz.jelly.JellySession

    {
        /* TODO: this is for compatibility - do we want the user to request a new session instead?
         eg force=true on the tag
         not great to tie variables to session if we are creating a new one */
        Session session = (Session) getContext().getVariable( PluginManager.GLOBAL_SESSION_KEY );
        Session newSession = new JellySession( ( (MavenJellyContext) getContext() ).getXMLOutput() );
        for ( Iterator i = session.getAttributes().keySet().iterator(); i.hasNext(); )
        {
            String key = (String) i.next();
            newSession.setAttribute( key, session.getAttribute( key ) );
        }

        return newSession;
    }
View Full Code Here

Examples of org.apache.maven.werkz.jelly.JellySession

    {
        /* TODO: this is for compatibility - do we want the user to request a new session instead?
         eg force=true on the tag
         not great to tie variables to session if we are creating a new one */
        Session session = (Session) getContext().getVariable( PluginManager.GLOBAL_SESSION_KEY );
        Session newSession = new JellySession( ( (MavenJellyContext) getContext() ).getXMLOutput() );
        for ( Iterator i = session.getAttributes().keySet().iterator(); i.hasNext(); )
        {
            String key = (String) i.next();
            newSession.setAttribute( key, session.getAttribute( key ) );
        }

        return newSession;
    }
View Full Code Here

Examples of org.apache.maven.werkz.jelly.JellySession

        // TODO: shouldn't this be a stack too? Then session attribute not needed
        transientMapper = new GoalToJellyScriptHousingMapper();

        // Create the Jelly session
        Session session = new JellySession( baseContext.getXMLOutput() );
        session.setAttribute( BASE_CONTEXT, baseContext );
        session.setAttribute( PLUGIN_MANAGER, this );
        session.setAttribute( GOAL_MAPPER, transientMapper );

        // add the global session to the pluginContext so that it can be used by tags
        baseContext.setVariable( GLOBAL_SESSION_KEY, session );

        // Execution of the Jelly scripts:
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.