Spring Framework ReflectiveMethodInvocation - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ReflectiveMethodInvocation class.

This code example shows how to use the following methods:getUserAttribute
        attrs.put(RS, reusedSession);
    } 
 
    protected ServiceFactory getServiceFactory(MethodInvocation mi) {
        ReflectiveMethodInvocation rmi = (ReflectiveMethodInvocation) mi;
        return (ServiceFactory) rmi.getUserAttribute(SF);
    } 
 
    protected Principal getPrincipal(MethodInvocation mi) {
        ReflectiveMethodInvocation rmi = (ReflectiveMethodInvocation) mi;
        return (Principal) rmi.getUserAttribute(PR);
    } 
 
    protected boolean hasPassword(MethodInvocation mi) {
        ReflectiveMethodInvocation rmi = (ReflectiveMethodInvocation) mi;
        AtomicBoolean reusedSession = (AtomicBoolean) rmi.getUserAttribute(RS);
        return reusedSession == null ? true : !reusedSession.get();
    } 
 
} 
4
CodeRank
See Code Examples for Spring Framework ReflectiveMethodInvocation Methods: