ch.elca.dependency.graph
Class PerspectiveManager

java.lang.Object
  |
  +--ch.elca.dependency.graph.PerspectiveManager

public class PerspectiveManager
extends java.lang.Object

This class is responsible for loading perspectives from a config file and to make them available.

Version:
1.0-beta
Author:
Pawel Kowalski

Constructor Summary
PerspectiveManager()
           
 
Method Summary
static Perspective loadFirstPerspective(java.io.File perspectiveConfig)
          Load the first perspective defined in a config file.
static Perspective[] loadPerspectives(java.io.File perspectiveConfig)
          Load Perspectives described in File perspectiveConfig.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerspectiveManager

public PerspectiveManager()
Method Detail

loadPerspectives

public static Perspective[] loadPerspectives(java.io.File perspectiveConfig)
Load Perspectives described in File perspectiveConfig. If the file specified doesn't exist or is not readable or it cann't be parsed by the Digester, just one default perspective will be available.

Parameters:
perspectiveConfig - a String identifying the perspectives config file.

loadFirstPerspective

public static Perspective loadFirstPerspective(java.io.File perspectiveConfig)
Load the first perspective defined in a config file.

Parameters:
perspectiveConfig - a File value
Returns:
a Perspective value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.