1 17 18 package org.apache.avalon.util.defaults ; 19 20 21 import java.util.Properties ; 22 23 24 30 public class SimpleDefaultsFinder implements DefaultsFinder 31 { 32 33 private Properties [] m_sources ; 34 35 private boolean m_haltOnDiscovery = true ; 36 37 38 44 public SimpleDefaultsFinder( Properties source ) 45 { 46 m_sources = new Properties [] { source } ; 47 m_haltOnDiscovery = false ; 48 } 49 50 51 60 public SimpleDefaultsFinder( Properties [] sources, 61 boolean haltOnDiscovery ) 62 { 63 m_sources = sources ; 64 m_haltOnDiscovery = haltOnDiscovery ; 65 } 66 67 68 74 public void find( Defaults a_defaults ) 75 { 76 Defaults.discover( a_defaults, m_sources, m_haltOnDiscovery ) ; 77 } 78 } 79 | Popular Tags |