net.sf.taverna.raven.spi
Class ProfileFactory

java.lang.Object
  extended by net.sf.taverna.raven.spi.ProfileFactory

public class ProfileFactory
extends java.lang.Object

A factory class for getting an instance of the Profile of the Taverna components according to the profile xml at the location defined by the system property taverna.profile. Once loaded it stores a copy locally which is used as a fallback should the defined location be innaccessible.


Method Summary
static ProfileFactory getInstance()
          Get the singleton ProfileFactory.
 Profile getProfile()
          Get the current system profile as specified by system property raven.profile.
 boolean isProfileDefined()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProfileFactory getInstance()
Get the singleton ProfileFactory.


getProfile

public Profile getProfile()
Get the current system profile as specified by system property raven.profile. Subsequent calls will return the same instance.

Returns:
Global Profile instance, or null if an error occured

isProfileDefined

public boolean isProfileDefined()