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: PurgingDatabaseAuthenticatedDeployer.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 all the
15: * authentication managers for database storage and enables automatic in-process purging.
16: *
17: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
18: * @version $Revision: 3643 $
19: * @since 1.0
20: */
21: public class PurgingDatabaseAuthenticatedDeployer extends
22: DatabaseAuthenticatedDeployer {
23: public void deploy() throws EngineException {
24: HierarchicalProperties properties = getElementInfo()
25: .getProperties();
26: if (getElementInfo().isPropertyEmpty(
27: PROPERTYNAME_ENABLE_PURGING)) {
28: properties.put(PROPERTYNAME_ENABLE_PURGING, true);
29: }
30:
31: super.deploy();
32: }
33: }
|