|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.io.PropertyProxyRegistry
public class PropertyProxyRegistry
Allows custom PropertyProxy's to be registered on a Class basis. Class hierarchies can be optionally searched with the first match winning. The search starts by trying an exact Class match, then the immediate interfaces are tried in the order that they are declared on the Class and finally the process is repeated for the superclass, if one exists. If a PropertyProxy is found in the immediate parent hierarchy (either the immediate superclass or directly implemented interfaces) then the implementing class is registered with the selected PropertyProxy to optimize subsequent searches.
| Constructor Summary | |
|---|---|
PropertyProxyRegistry()
Constructs an empty PropertyProxy registry. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all items from the class registry. |
PropertyProxy |
getProxy(Class c)
Locates a custom PropertyProxy for the given Class. |
PropertyProxy |
getProxy(Class c,
boolean searchHierarchy,
boolean autoRegister)
Locates a custom PropertyProxy for the given Class. |
static PropertyProxy |
getProxy(Object instance)
Returns a PropertyProxy suitable for the given instance but does not register the selected PropertyProxy for the Class of the instance. |
PropertyProxy |
getProxyAndRegister(Class c)
Locates a custom PropertyProxy for the given Class. |
static PropertyProxy |
getProxyAndRegister(Object instance)
Returns a PropertyProxy suitable for the given instance and registers the selected PropertyProxy for the Class of the instance. |
static PropertyProxyRegistry |
getRegistry()
Returns the static or "application scope" PropertyProxy registry. |
void |
register(Class c,
PropertyProxy proxy)
Register a custom PropertyProxy for a Class. |
static void |
release()
Call this on Message broker shutdown ONLY. |
void |
unregister(Class c)
Removes a custom PropertyProxy from the registry. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyProxyRegistry()
| Method Detail |
|---|
public static PropertyProxyRegistry getRegistry()
public static void release()
public static PropertyProxy getProxyAndRegister(Object instance)
instance - the type to search for a suitable PropertyProxy.
public static PropertyProxy getProxy(Object instance)
instance - the type to search for a suitable PropertyProxy.
public PropertyProxy getProxy(Class c)
c - the Class used to search the registry.
public PropertyProxy getProxyAndRegister(Class c)
c - the Class used to search the registry.
public PropertyProxy getProxy(Class c,
boolean searchHierarchy,
boolean autoRegister)
c - the Class used to search the registry.searchHierarchy - if true the entire class hierarchy is searched.autoRegister - if true a successful match is registerd for top
level class
public void clear()
public void register(Class c,
PropertyProxy proxy)
c - The key for the class registry.proxy - The custom PropertyProxy implementation.public void unregister(Class c)
c - The Class to be removed from the registry.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/PropertyProxyRegistry.html