org.puremvc.java.multicore.interfaces
Interface IModel

All Known Implementing Classes:
Model

public interface IModel

The interface definition for a PureMVC Model.

In PureMVC, IModel implementors provide access to IProxy objects by named lookup.

An IModel assumes these responsibilities:


Method Summary
 boolean hasProxy(String proxyName)
          Check if a Proxy is registered.
 void registerProxy(IProxy proxy)
          Register an IProxy instance with the Model.
 IProxy removeProxy(String proxy)
          Remove an IProxy instance from the Model.
 IProxy retrieveProxy(String proxy)
          Retrieve an IProxy instance from the Model.
 

Method Detail

registerProxy

void registerProxy(IProxy proxy)
Register an IProxy instance with the Model.

Parameters:
proxy - an object reference to be held by the Model.

retrieveProxy

IProxy retrieveProxy(String proxy)
Retrieve an IProxy instance from the Model.

Parameters:
proxy -
Returns:
the IProxy instance previously registered with the given proxyName.

removeProxy

IProxy removeProxy(String proxy)
Remove an IProxy instance from the Model.

Parameters:
proxy - name of the IProxy instance to be removed.

hasProxy

boolean hasProxy(String proxyName)
Check if a Proxy is registered.

Parameters:
proxyName -
Returns:
whether a Proxy is currently registered with the given proxyName.


Copyright © 2010. All Rights Reserved.