ERD2WContext Class Reference

Inherits com::webobjects::directtoweb::D2WContext.

Collaboration diagram for ERD2WContext:

Collaboration graph
base refererrect $classcom_1_1webobjects_1_1directtoweb_1_1_e_r_d2_w_context_1_1_factory.html 7,8 169,32
[legend]

List of all members.

Classes

class  Factory

Public Member Functions

 ERD2WContext (D2WContext session)
 ERD2WContext (WOSession session)
 ERD2WContext ()
void setDynamicPage (String page)

Static Public Member Functions

static D2WContext newContext (D2WContext context)
static D2WContext newContext (WOSession session)
static D2WContext newContext ()
static void setFactory (Factory factory)

Package Functions

EOAttribute customAttribute (String s, EOEntity eoentity)

Static Package Functions

 [static initializer]

Static Private Attributes

static Factory _factory = new Factory()
static Map customAttributes = new HashMap()
static final Object NOT_FOUND = new Object()


Detailed Description

Optimizes custom attribute handling and fixes a problem when a context can't find its task or entity even though it is given in the rules.
Author:
david caching

ak factory, thread safety, fix


Constructor & Destructor Documentation

ERD2WContext (  ) 

ERD2WContext ( WOSession  session  ) 

ERD2WContext ( D2WContext  session  ) 


Member Function Documentation

[static initializer] (  )  [static, package]

EOAttribute customAttribute ( String  s,
EOEntity  eoentity 
) [package]

Overridden so that custom attributes are cached as a performance optimization.

static D2WContext newContext ( D2WContext  context  )  [static]

static D2WContext newContext ( WOSession  session  )  [static]

static D2WContext newContext (  )  [static]

void setDynamicPage ( String  page  ) 

Overrridden because when a page config is set, task and entity are cleared, but not re-set when you just call task() or entity(). This leads to NPEs, errors that a pageName can't be found and others. Setting it here fixes it.

static void setFactory ( Factory  factory  )  [static]


Member Data Documentation

Factory _factory = new Factory() [static, private]

Map customAttributes = new HashMap() [static, private]

final Object NOT_FOUND = new Object() [static, private]


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

Generated on Sat May 26 06:42:31 2012 for Project Wonder by  doxygen 1.5.8