IERXRestDelegate.Factory Class Reference

Collaboration diagram for IERXRestDelegate.Factory:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static IERXRestDelegate delegateForEntityNamed (String entityName, EOEditingContext editingContext)
static String entityNameForObject (Object obj)
static void setDefaultDelegateClass (Class<?extends IERXRestDelegate > defaultDelegate)
static void setDelegateForEntityNamed (Class<?extends IERXRestDelegate > delegateClass, String entityName, Class<?> clazz)
static void setDelegateForEntityNamed (Class<?extends IERXRestDelegate > delegateClass, String entityName)

Static Private Attributes

static Class<?extends
IERXRestDelegate
_defaultDelegate = ERXEORestDelegate.class
static NSMutableDictionary
< String, Class<?extends
IERXRestDelegate > > 
_delegates = new NSMutableDictionary<String, Class<? extends IERXRestDelegate>>()


Detailed Description

A Factory for creating IERXRestDelegates. Right now it's just hard-coded, but this is being added for a later extension point.

Author:
mschrag

Member Function Documentation

static IERXRestDelegate delegateForEntityNamed ( String  entityName,
EOEditingContext  editingContext 
) [static]

Returns a rest delegate for the given entity name.

Parameters:
entityName the name o the entity to lookup
editingContext the current editingcontext
Returns:
a rest delegate

static String entityNameForObject ( Object  obj  )  [static]

Returns the entity name for the given object.

Parameters:
obj the object to return an entity name for
Returns:
the entity name for the given object

static void setDefaultDelegateClass ( Class<?extends IERXRestDelegate defaultDelegate  )  [static]

Sets the default rest delegate to use when no other can be found. The default is ERXEORestDelegate.

Parameters:
defaultDelegate the default delegate to use

static void setDelegateForEntityNamed ( Class<?extends IERXRestDelegate delegateClass,
String  entityName,
Class<?>  clazz 
) [static]

Registers a rest delegate for the given entity name.

Parameters:
delegateClass the delegate class to register
entityName the entity name to register for

static void setDelegateForEntityNamed ( Class<?extends IERXRestDelegate delegateClass,
String  entityName 
) [static]

Registers a rest delegate for the given entity name.

Parameters:
delegateClass the delegate class to register
entityName the entity name to register for


Member Data Documentation

Class<? extends IERXRestDelegate> _defaultDelegate = ERXEORestDelegate.class [static, private]

NSMutableDictionary<String, Class<? extends IERXRestDelegate> > _delegates = new NSMutableDictionary<String, Class<? extends IERXRestDelegate>>() [static, private]


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

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