01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: PurgingMixedAuthenticatedDeployer.java 3643 2007-01-12 15:29:45Z gbevin $
07: */
08: package com.uwyn.rife.authentication.elements;
09:
10: import com.uwyn.rife.engine.exceptions.EngineException;
11: import com.uwyn.rife.ioc.HierarchicalProperties;
12:
13: /**
14: * Deployer for {@link Authenticated} elements that by default sets up the
15: * credentials and remember-me managers for database storage, the session
16: * managers for memory storage and enables automatic in-process purging.
17: *
18: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
19: * @version $Revision: 3643 $
20: * @since 1.0
21: */
22: public class PurgingMixedAuthenticatedDeployer extends
23: MixedAuthenticatedDeployer {
24: public void deploy() throws EngineException {
25: HierarchicalProperties properties = getElementInfo()
26: .getProperties();
27: if (getElementInfo().isPropertyEmpty(
28: PROPERTYNAME_ENABLE_PURGING)) {
29: properties.put(PROPERTYNAME_ENABLE_PURGING, true);
30: }
31:
32: super.deploy();
33: }
34: }
|