jfun.yan.xml.nuts.optional
Class PropertiesRegisterNut

java.lang.Object
  extended by jfun.yan.xml.nut.Nut
      extended by jfun.yan.xml.nuts.optional.AbstractRegisterNut
          extended by jfun.yan.xml.nuts.optional.AbstractLoopRegisterNut
              extended by jfun.yan.xml.nuts.optional.PropertiesRegisterNut
All Implemented Interfaces:
java.io.Serializable

public class PropertiesRegisterNut
extends AbstractLoopRegisterNut

This class dynamically registers components using the information read from a property file.

Author:
Ben Yu Dec 22, 2005 12:32:01 AM
See Also:
Serialized Form

Constructor Summary
PropertiesRegisterNut()
           
 
Method Summary
 void eval()
           
 java.lang.String getClasspath()
           
 java.io.File getFile()
           
 java.lang.String getResource()
           
protected  java.util.Properties readProperties()
           
 void setClasspath(java.lang.String classpath)
           
 void setFile(java.io.File file)
           
 void setResource(java.lang.String resource)
           
 
Methods inherited from class jfun.yan.xml.nuts.optional.AbstractLoopRegisterNut
add, calcFQN, createArgs, createArgs, getBody, getMandatoryBody, getPrefix, getSuffix, loop, loop, setBody, setPrefix, setSuffix
 
Methods inherited from class jfun.yan.xml.nuts.optional.AbstractRegisterNut
isEager_init, isEagerlyInstantiating, isOverridable, isOverriding, registerValue, setEager_init, setOverridable, setOverriding
 
Methods inherited from class jfun.yan.xml.nut.Nut
cast, checkDuplicate, checkMandatory, checkMandatory, convert, getComponentClassLoader, getId, getNutClassLoader, getNutEnvironment, getParameterWiring, getPropertyWiring, getSequenceNumber, getTagLocation, getTagName, initGloballyDefined, initNutEnvironment, initSequenceNumber, initTagLocation, initTagName, isGloballyDefined, raise, raise, register, registerEagerInstantiation, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertiesRegisterNut

public PropertiesRegisterNut()
Method Detail

getClasspath

public java.lang.String getClasspath()

setClasspath

public void setClasspath(java.lang.String classpath)

getFile

public java.io.File getFile()

setFile

public void setFile(java.io.File file)

getResource

public java.lang.String getResource()

setResource

public void setResource(java.lang.String resource)

readProperties

protected java.util.Properties readProperties()
                                       throws java.io.IOException
Throws:
java.io.IOException

eval

public void eval()
          throws java.io.IOException
Throws:
java.io.IOException