Project Wonder 2.0

er.extensions
Class ERXFrameworkPrincipal

java.lang.Object
  extended byer.extensions.ERXFrameworkPrincipal
Direct Known Subclasses:
ERCoreBusinessLogic, ERJavaMail

public abstract class ERXFrameworkPrincipal
extends Object

Designated starter class for frameworks. the finishInitialization will be called when the app finishes startup. To use, subclass it and set the NSPrincipalClass of your framework to the subclass. See the ERXCoreBusinessLogic and BTBusinessLogic frameworks for an example of usage.


Field Summary
static ERXLogger log
          logging support
 
Constructor Summary
ERXFrameworkPrincipal()
           
 
Method Summary
abstract  void finishInitialization()
          Overridden by subclasses to provide framework initialization.
 void finishInitialization(NSNotification n)
          Notification method called when the WOApplication posts the notification 'ApplicationWillFinishLaunching'.
 ERXLogger log()
          Access to the logging mechanism
static void setUpFrameworkPrincipalClass(Class c)
          Sets up a given framework principal class to recieve notification when it is safe for the framework to be initialized.
static ERXFrameworkPrincipal sharedInstance(Class c)
          Gets the shared framework principal instance for a given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final ERXLogger log
logging support

Constructor Detail

ERXFrameworkPrincipal

public ERXFrameworkPrincipal()
Method Detail

sharedInstance

public static ERXFrameworkPrincipal sharedInstance(Class c)
Gets the shared framework principal instance for a given class.

Returns:
framework principal initializer

setUpFrameworkPrincipalClass

public static void setUpFrameworkPrincipalClass(Class c)
Sets up a given framework principal class to recieve notification when it is safe for the framework to be initialized.

Parameters:
c - principal class

finishInitialization

public final void finishInitialization(NSNotification n)
Notification method called when the WOApplication posts the notification 'ApplicationWillFinishLaunching'. This method handles de-registering for notifications and releasing any references to observer so that it can be released for garbage collection.

Parameters:
n - notification that is posted after the WOApplication has been constructed, but before the application is ready for accepting requests.

finishInitialization

public abstract void finishInitialization()
Overridden by subclasses to provide framework initialization.


log

public ERXLogger log()
Access to the logging mechanism

Returns:
shared logging instance

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.