Ignore:
Timestamp:
01/09/14 16:13:48 (10 years ago)
Author:
twagoo
Message:

Replaced calls getting session (either on component or statically) and casting to VloSession? with new convenience method VloSession?.get()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/to-wicket-1.6/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloSession.java

    r4234 r4240  
    11package eu.clarin.cmdi.vlo;
    22
     3import org.apache.wicket.Session;
    34import org.apache.wicket.protocol.http.WebSession;
    45import org.apache.wicket.request.Request;
     
    6869        vloSessionPageParameters.mergeWith(parameters);
    6970    }
     71
     72    /**
     73     * @return the VLO session associated to current thread
     74     */
     75    public static VloSession get() {
     76        return (VloSession) Session.get();
     77    }
    7078}
Note: See TracChangeset for help on using the changeset viewer.