01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com> and
03: * Steven Grimm <koreth[remove] at midwinter dot com>
04: * Distributed under the terms of either:
05: * - the common development and distribution license (CDDL), v1.0; or
06: * - the GNU Lesser General Public License, v2.1 or later
07: * $Id: SimpleLogoutTemplate.java 3643 2007-01-12 15:29:45Z gbevin $
08: */
09: package com.uwyn.rife.authentication.elements;
10:
11: import com.uwyn.rife.authentication.remembermanagers.RememberManagerFactoryFactory;
12: import com.uwyn.rife.authentication.sessionmanagers.SessionManagerFactoryFactory;
13: import com.uwyn.rife.engine.annotations.Elem;
14: import com.uwyn.rife.engine.exceptions.PropertyValueErrorException;
15: import com.uwyn.rife.ioc.exceptions.PropertyValueException;
16:
17: /**
18: *
19: *
20: * @author Steven Grimm (koreth[remove] at midwinter dot com)
21: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
22: * @version $Revision: 3643 $
23: * @since 1.6
24: */
25: @Elem
26: public class SimpleLogoutTemplate extends AbstractLogoutTemplate {
27: public void initialize() {
28: try {
29: setSessionManager(SessionManagerFactoryFactory
30: .getManager(getElementInfo().getProperties()));
31: setRememberManager(RememberManagerFactoryFactory
32: .getManager(getElementInfo().getProperties()));
33: } catch (PropertyValueException e) {
34: throw new PropertyValueErrorException(getDeclarationName(),
35: e);
36: }
37: }
38: }
|