Rio Project 4.2 API Documentation



org.rioproject.boot
Class PlatformLoader

java.lang.Object
  extended by org.rioproject.boot.PlatformLoader

public class PlatformLoader
extends Object

Parses platform configuration documents

Author:
Dennis Reedy

Constructor Summary
PlatformLoader()
           
 
Method Summary
 PlatformCapabilityConfig[] getDefaultPlatform(String rioHome)
          Get the default platform configuration
 PlatformCapabilityConfig[] parsePlatform(String directory)
          Parse the platform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformLoader

public PlatformLoader()
Method Detail

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 © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.