1 package org.jadetower.dao.test.daos.impl; 2 3 import org.jadetower.dao.test.daos.ContextDao; 4 import java.io.File; 5 import java.util.Map; 6 import org.apache.avalon.framework.context.Context; 7 import org.apache.avalon.framework.context.Contextualizable; 8 import org.apache.avalon.framework.context.ContextException; 9 10 public class ContextDaoAvalonImpl implements ContextDao, Contextualizable{ 11 12 String m_name = null; 13 File m_file = null; 14 15 public ContextDaoAvalonImpl(){ 16 } 17 18 public void contextualize(Context context) throws ContextException { 19 m_name = (String) context.get("name"); 20 m_file = (File) context.get("file"); 21 } 22 23 public String getName() { 24 return m_name; 25 } 26 27 public File getFile() { 28 return m_file; 29 } 30 31 32 }

This page was automatically generated by Maven