gnu.beanfactory
Class PropertiesDefinitionLoader

java.lang.Object
  |
  +--gnu.beanfactory.PropertiesDefinitionLoader
All Implemented Interfaces:
DefinitionLoader
Direct Known Subclasses:
BootstrapDefinitionLoader, RuntimeDefinitionLoader

public abstract class PropertiesDefinitionLoader
extends java.lang.Object
implements DefinitionLoader

Properties-based DefinitionLoader implementation.

Version:
$Id: PropertiesDefinitionLoader.java,v 1.35 2001/10/10 05:42:42 rschoening Exp $
Author:
Rob Schoening

Constructor Summary
PropertiesDefinitionLoader()
           
 
Method Summary
 void addBeanDefinition(BeanDefinition def)
           
protected  java.util.Map createBeanDefinitions(java.util.Properties env)
           
 BeanDefinition getBeanDefinition(java.lang.String urn)
          Look up a bean definition by name.
 java.util.Set getBeanDefinitionNames()
          Get a set of bean names.
 java.util.Iterator getConfigSources()
           
 void importDefinitions(DefinitionLoader dl)
           
abstract  void load()
           
protected  void loadBeanDefinitions(java.util.Properties env)
           
 void mergeFromSystemProperties(java.util.Properties p)
           
 void removeBeanDefinition(java.lang.String urn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gnu.beanfactory.DefinitionLoader
getProperties
 

Constructor Detail

PropertiesDefinitionLoader

public PropertiesDefinitionLoader()
Method Detail

getConfigSources

public java.util.Iterator getConfigSources()
Specified by:
getConfigSources in interface DefinitionLoader

importDefinitions

public void importDefinitions(DefinitionLoader dl)
                       throws BeanFactoryException

load

public abstract void load()
                   throws BeanFactoryException

loadBeanDefinitions

protected void loadBeanDefinitions(java.util.Properties env)
                            throws BeanFactoryException

createBeanDefinitions

protected java.util.Map createBeanDefinitions(java.util.Properties env)

removeBeanDefinition

public void removeBeanDefinition(java.lang.String urn)

getBeanDefinition

public BeanDefinition getBeanDefinition(java.lang.String urn)
                                 throws BeanFactoryException
Description copied from interface: DefinitionLoader
Look up a bean definition by name.
Specified by:
getBeanDefinition in interface DefinitionLoader

getBeanDefinitionNames

public java.util.Set getBeanDefinitionNames()
Description copied from interface: DefinitionLoader
Get a set of bean names.
Specified by:
getBeanDefinitionNames in interface DefinitionLoader

addBeanDefinition

public void addBeanDefinition(BeanDefinition def)
                       throws BeanFactoryException

mergeFromSystemProperties

public void mergeFromSystemProperties(java.util.Properties p)
                               throws java.io.IOException