Example usage for javax.el ELContext putContext

List of usage examples for javax.el ELContext putContext

Introduction

In this page you can find the example usage for javax.el ELContext putContext.

Prototype

public void putContext(@SuppressWarnings("rawtypes") Class key, Object contextObject) 

Source Link

Document

Add an object to this EL context under the given key.

Usage

From source file:therian.uelbox.HelperELResolver.java

State getOrCreateState(ELContext context, Object base) {
    synchronized (context) {
        @SuppressWarnings("unchecked")
        State state = UEL.getContext(context, State.class);
        if (state == null) {
            state = createState(context, base);
            context.putContext(State.class, state);
        } else if (state.completion == Completion.YES) {
            state.reset();//from  w  w w.j a  v  a  2 s.c  om
        }
        state.tip = base;
        return state;
    }
}