@SessionScoped public static class MyNonSingletonFilter extends DummyFilterImpl {}
@SessionScoped static class InSession implements Serializable {}
@Provides @SessionScoped Integer provideInteger() { return 1; }
@SessionScoped public class SessionStorageProperties<J extends SessionStorageProperties<J>> extends JavaScriptPart<J>
@SessionScoped public class SessionStorageProperties<J extends SessionStorageProperties<J>> extends JavaScriptPart<J>
@SessionScoped public class SessionStorageProperties<J extends SessionStorageProperties<J>> extends JavaScriptPart<J>
@SessionScoped public class Identity implements Serializable { private static final long serialVersionUID = 1L;
@SessionScoped public class CheckAuthentication implements MethodInterceptor { private static final Logger logger = LoggerFactory.getLogger(CheckAuthentication.class);
/** * Used to store binding (or forwarding) information between successive requests. * * @author Dhanji R. Prasanna (dhanji@gmail.com) */ @ThreadSafe @SessionScoped public class HttpSessionFlashCache implements FlashCache, Serializable { private final ConcurrentMap<String, Object> cache = new MapMaker().makeMap(); @SuppressWarnings("unchecked") public <T> T get(String key) { return (T) cache.get(key); } @SuppressWarnings("unchecked") public <T> T remove(String key) { return (T) cache.remove(key); } public <T> void put(String key, T t) { cache.put(key, t); } }
/** * Used to store binding (or forwarding) information between successive requests. * * @author Dhanji R. Prasanna (dhanji@gmail.com) */ @ThreadSafe @SessionScoped public class HttpSessionFlashCache implements FlashCache, Serializable { private final ConcurrentMap<String, Object> cache = new MapMaker().makeMap(); @SuppressWarnings("unchecked") public <T> T get(String key) { return (T) cache.get(key); } @SuppressWarnings("unchecked") public <T> T remove(String key) { return (T) cache.remove(key); } public <T> void put(String key, T t) { cache.put(key, t); } }
/** * Used to store binding (or forwarding) information between successive requests. * * @author Dhanji R. Prasanna (dhanji@gmail.com) */ @ThreadSafe @SessionScoped public class HttpSessionFlashCache implements FlashCache, Serializable { private final ConcurrentMap<String, Object> cache = new MapMaker().makeMap(); @SuppressWarnings("unchecked") public <T> T get(String key) { return (T) cache.get(key); } @SuppressWarnings("unchecked") public <T> T remove(String key) { return (T) cache.remove(key); } public <T> void put(String key, T t) { cache.put(key, t); } }