org.jasig.portal.layout.dlm
Class LegacyConfigurationLoader

java.lang.Object
  extended by org.jasig.portal.layout.dlm.LegacyConfigurationLoader
All Implemented Interfaces:
ConfigurationLoader
Direct Known Subclasses:
RDBMConfigurationLoader

public class LegacyConfigurationLoader
extends Object
implements ConfigurationLoader

Implementation of ConfigurationLoader that behaves exactly as DLM has always done: load FragmentDefinition objects from dlm.xml.

Author:
awills

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
LegacyConfigurationLoader()
           
 
Method Summary
 List<FragmentDefinition> getFragments()
           
protected  List<FragmentDefinition> getFragments(NodeList frags)
           
protected  Properties getProperties(NodeList props)
           
 String getProperty(String propertyName)
           
 int getPropertyCount()
           
protected  void loadFragmentInfo()
           
protected  void logConfigFileInfo()
           
 void setConfigurationFile(Resource configurationFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

LegacyConfigurationLoader

public LegacyConfigurationLoader()
Method Detail

setConfigurationFile

public void setConfigurationFile(Resource configurationFile)
Parameters:
configurationFile - The dlm.xml file to load configuration from

loadFragmentInfo

protected void loadFragmentInfo()

getFragments

public List<FragmentDefinition> getFragments()
Specified by:
getFragments in interface ConfigurationLoader
Returns:
The available fragment definitions

getProperty

public String getProperty(String propertyName)
Specified by:
getProperty in interface ConfigurationLoader
Returns:
The DLM configuration property

getPropertyCount

public int getPropertyCount()
Specified by:
getPropertyCount in interface ConfigurationLoader
Returns:
The number of properties

getProperties

protected Properties getProperties(NodeList props)

getFragments

protected List<FragmentDefinition> getFragments(NodeList frags)

logConfigFileInfo

protected void logConfigFileInfo()


Copyright © 2010 Jasig. All Rights Reserved.