1 package org.jadetower.dao.test.daos.impl; 2 3 /* 4 Copyright (c) 2003, J Aaron Farr 5 All rights reserved. 6 7 This software is published under the terms of the JadeTower Software License, 8 a BSD derived license, a copy of which has been included with this 9 distribution in the LICENSE file. <http://www.jadetower.org> 10 */ 11 12 import org.jadetower.dao.test.daos.SimpleDAO; 13 import org.apache.avalon.framework.configuration.Configurable; 14 import org.apache.avalon.framework.configuration.Configuration; 15 16 /*** 17 * simplest DAO HelloWorld Implementation 18 * @author farra 19 * @version $Id: SimpleConfDaoImpl.java,v 1.1 2003/12/27 20:10:08 jaaron_farr Exp $ 20 */ 21 public class SimpleConfDaoImpl 22 implements SimpleDAO, Configurable 23 { 24 protected String m_name = "unconfigured"; 25 26 public SimpleConfDaoImpl() { 27 } 28 29 public String getName() { 30 return m_name; 31 } 32 33 public void configure(Configuration configuration) { 34 Configuration nameElement = configuration.getChild("name",true); 35 m_name = nameElement.getValue(null); 36 } 37 }

This page was automatically generated by Maven