org.puremvc.java.multicore.interfaces
Interface IProxy

All Superinterfaces:
INotifier
All Known Implementing Classes:
Proxy

public interface IProxy
extends INotifier

The interface definition for a PureMVC Proxy.

In PureMVC, IProxy implementors assume these responsibilities:

Additionally, IProxys typically:


Method Summary
 Object getData()
          Get the data object.
 String getProxyName()
          Get the Proxy name.
 void onRegister()
          Called by the Model when the Proxy is registered.
 void onRemove()
          Called by the Model when the Proxy is removed.
 void setData(Object data)
          Set the data object.
 
Methods inherited from interface org.puremvc.java.multicore.interfaces.INotifier
initializeNotifier, sendNotification, sendNotification, sendNotification
 

Method Detail

getProxyName

String getProxyName()
Get the Proxy name.

Returns:
the Proxy instance name

setData

void setData(Object data)
Set the data object.

Parameters:
data - the data object

getData

Object getData()
Get the data object.

Returns:
the data as type Object

onRegister

void onRegister()
Called by the Model when the Proxy is registered.


onRemove

void onRemove()
Called by the Model when the Proxy is removed.



Copyright © 2010. All Rights Reserved.