Rio Project 4.2 API Documentation
org.rioproject.boot
Class PlatformLoader
java.lang.Object
org.rioproject.boot.PlatformLoader
public class PlatformLoader
- extends Object
Parses platform configuration documents
- Author:
- Dennis Reedy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlatformLoader
public PlatformLoader()
parsePlatform
public PlatformCapabilityConfig[] parsePlatform(String directory)
throws Exception
- Parse the platform
- Parameters:
directory - The directory to search for XML or groovy configuration documents
- Returns:
- An array of PlatformCapabilityConfig objects
- Throws:
Exception - if there are errors parsing the configuration files
getDefaultPlatform
public PlatformCapabilityConfig[] getDefaultPlatform(String rioHome)
throws Exception
- Get the default platform configuration
- Parameters:
rioHome - Home directory for Rio, must not be null and must exist
- Returns:
- An array of PlatformCapabilityConfig objects
- Throws:
IllegalArgumentException - if rioHome is null and not running under
the StaticCybernode
Exception - if the rioHome does not exist
Copyright © 2006-2011 Rio Project. All Rights Reserved.