Overview | Namespace | Classifier | Tree | Index | Help
PREV NEXT | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | DESTR | METHOD | DETAIL: FIELD | CONSTR | DESTR | METHOD

## Namespace: PureMVC.Patterns.Proxy
Class TProxy

    System.TInterfacedObject
      |
      +-- PureMVC.Patterns.Notifier.TNotifier
        |
        +-- PureMVC.Patterns.Proxy.TProxy

All Implemented Interfaces:
  IProxy , INotifier

public class TProxy ( TNotifier , IProxy , INotifier )

Abstract
  False

Sealed
  False

Persistent
  False

summary
  A base IProxy implementation

remarks
  In PureMVC, Proxy classes are used to manage parts of the application's data modelA Proxy might simply manage a reference to a local data object, in which case interacting with it might involve setting and getting of its data in synchronous fashionProxy classes are also used to encapsulate the application's interaction with remote services to save or retrieve data, in which case, we adopt an asyncronous idiom; setting data (or calling a method) on the Proxy and listening for a Notification to be sent when the Proxy has retrieved the data from the service

Field Summary
`public System.string` | `NAME`

Property Summary
`public TValue` | `Data`

Constructor Summary
`Create(ProxyName: string; Data: TValue)` Constructs a new proxy with the specified name and data
`Create(ProxyName: string)`

Method Summary
`public function TValue` | `GetData()`
`public function string` | `GetProxyName()`
`public Sub` | `OnRegister()` Called by the Model when the Proxy is registered
`public Sub` | `OnRemove()` Called by the Model when the Proxy is removed
`public Sub` | `SetData(Value: TValue)`

Field Detail

### NAME

    public const NAME: System.string = 'Proxy'

Initial
  'Proxy'

Const
  True

Class
  False

Property Detail

### Data

    public Data: TValue

Type
  TValue

Access
  read/write

Class
  False

Constructor Detail

### Create

    public constructor Create(ProxyName: string; Data: TValue)

Abstract
  False

Reintroduce
  False

Virtual
  False

Override
  False

Final
  False

summary
  Constructs a new proxy with the specified name and data

param
  The name of the proxy
  The data to be managed

### Create

    public constructor Create(ProxyName: string)

Abstract
  False

Reintroduce
  False

Virtual
  False

Override
  False

Final
  False

Method Detail

### GetData

    public function GetData(): TValue

Abstract
  False

Reintroduce
  False

Final
  False

Returns
  TValue

Virtual
  False

Override
  False

Class
  False

### GetProxyName

    public function GetProxyName(): string

Abstract
  False

Reintroduce
  False

Final
  False

Returns
  string

Virtual
  False

Override
  False

Class
  False

### OnRegister

    public procedure OnRegister()

Abstract
  False

Reintroduce
  False

Final
  False

Virtual
  True

Override
  False

summary
  Called by the Model when the Proxy is registered

Class
  False

### OnRemove

    public procedure OnRemove()

Abstract
  False

Reintroduce
  False

Final
  False

Virtual
  True

Override
  False

summary
  Called by the Model when the Proxy is removed

Class
  False

### SetData

    public procedure SetData(Value: TValue)

Abstract
  False

Reintroduce
  False

Final
  False

Virtual
  False

Override
  False

Class
  False

Implementation Link

to Interface IProxy

Client
  TProxy

Supplier
  IProxy

to Interface INotifier

Client
  TProxy

Supplier
  INotifier

Generalization Link

to Class TNotifier

Client
  TProxy

Supplier
  TNotifier

Overview | Namespace | Classifier | Tree | Index | Help
PREV NEXT | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | DESTR | METHOD | DETAIL: FIELD | CONSTR | DESTR | METHOD