ERXApplication.Loader Class Reference

Collaboration diagram for ERXApplication.Loader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void bundleDidLoad (NSNotification n)
boolean didLoad ()
 Loader (String[] argv)

Private Member Functions

void applyIfUnset (Properties bundleProps)
void collectMainProps (String userName)
void debugMsg (String msg)
boolean isSystemJar (String jar)
NSBundle mainBundle ()
String propertyFromCommandLineFirst (String key)
Properties readProperties (NSBundle bundle, String name)
Properties readProperties (URL url)
Properties readProperties (File file)
String stringFromJar (String jar, String path)

Private Attributes

JarChecker _checker
Properties allBundleProps
List< URL > allBundlePropURLs = new ArrayList<URL>()
Set< StringallFrameworks
Properties defaultProperties
Properties mainProps
Properties mainUserProps
List< URL > urls = new ArrayList<URL>()


Detailed Description

Responsible for classpath munging.

Author:
ak

Constructor & Destructor Documentation

Loader ( String[]  argv  ) 

Called prior to actually initializing the app. Defines framework load order, class path order, checks patches etc.


Member Function Documentation

void applyIfUnset ( Properties  bundleProps  )  [private]

void bundleDidLoad ( NSNotification  n  ) 

Will be called after each bundle load. We use it to know when the last bundle loaded so we can post a notification for it. Note that the bundles will get loaded in the order of the classpath but the main bundle will get loaded last. So in order to set the properties correctly, we first add all the props that are not already set, then we add the main bundle and the WebObjects.properties and finally the command line props.

Parameters:
n 

void collectMainProps ( String  userName  )  [private]

void debugMsg ( String  msg  )  [private]

boolean didLoad (  ) 

boolean isSystemJar ( String  jar  )  [private]

NSBundle mainBundle (  )  [private]

String propertyFromCommandLineFirst ( String  key  )  [private]

Properties readProperties ( NSBundle  bundle,
String  name 
) [private]

Properties readProperties ( URL  url  )  [private]

Properties readProperties ( File  file  )  [private]

String stringFromJar ( String  jar,
String  path 
) [private]


Member Data Documentation

JarChecker _checker [private]

Properties allBundleProps [private]

List<URL> allBundlePropURLs = new ArrayList<URL>() [private]

Set<String> allFrameworks [private]

Holds the framework names during startup

Properties defaultProperties [private]

Properties mainProps [private]

Properties mainUserProps [private]

List<URL> urls = new ArrayList<URL>() [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:01 2012 for Project Wonder by  doxygen 1.5.8