com.intel.gpe.client2.common.clientwrapper
Class ClientWrapper<ClientType extends com.intel.gpe.clients.api.WSRPClient,CacheType>

java.lang.Object
  extended by com.intel.gpe.client2.common.clientwrapper.ClientWrapper<ClientType,CacheType>
All Implemented Interfaces:
java.lang.Comparable<ClientWrapper>
Direct Known Subclasses:
TargetSystemFactoryClientWrapper

public class ClientWrapper<ClientType extends com.intel.gpe.clients.api.WSRPClient,CacheType>
extends java.lang.Object
implements java.lang.Comparable<ClientWrapper>

ClientWrapper with implemented update() method. This method updates representation of the client.

Version:
$Id: ClientWrapper.java,v 1.6 2006/11/07 10:39:38 dizhigul Exp $
Author:
Valery Shorin

Constructor Summary
ClientWrapper(ClientType client, CacheType representation)
           
 
Method Summary
 void addUpdateListener(UpdateListener listener)
           
 int compareTo(ClientWrapper o)
           
 boolean equals(java.lang.Object o)
           
 CacheType getCache()
           
 ClientType getClient()
           
 Updater getUpdater()
           
 void notifyListeners(java.lang.Object from)
           
 void removeUpdateListener(UpdateListener listener)
           
 void setCache(CacheType cache)
           
 void setClient(ClientType client)
           
 void setUpdater(Updater updater)
           
 java.lang.String toString()
           
 void update(AsyncClient asyncClient, MessageAdapter messageAdapter, java.lang.Object from)
          Deprecated. use UpdateHelper.update(ClientWrapper, Updater, AsyncClient, MessageProvider, Object) instead
 void update(Updater updater, AsyncClient asyncClient, MessageAdapter messageAdapter, java.lang.Object from)
          Deprecated. use UpdateHelper.update(ClientWrapper, Updater, AsyncClient, MessageProvider, Object) instead
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientWrapper

public ClientWrapper(ClientType client,
                     CacheType representation)
Parameters:
client -
representation -
asyncClient -
updater -
Method Detail

update

public void update(AsyncClient asyncClient,
                   MessageAdapter messageAdapter,
                   java.lang.Object from)
Deprecated. use UpdateHelper.update(ClientWrapper, Updater, AsyncClient, MessageProvider, Object) instead

Parameters:
asyncClient -
messageAdapter -
from -

update

public void update(Updater updater,
                   AsyncClient asyncClient,
                   MessageAdapter messageAdapter,
                   java.lang.Object from)
Deprecated. use UpdateHelper.update(ClientWrapper, Updater, AsyncClient, MessageProvider, Object) instead

Parameters:
asyncClient -
messageAdapter -
from -

notifyListeners

public void notifyListeners(java.lang.Object from)

addUpdateListener

public void addUpdateListener(UpdateListener listener)

removeUpdateListener

public void removeUpdateListener(UpdateListener listener)

getClient

public ClientType getClient()
Returns:
the client

setClient

public void setClient(ClientType client)
Parameters:
client - the client to set

getCache

public CacheType getCache()
Returns:
the representation of client

setCache

public void setCache(CacheType cache)
Parameters:
cache - the representation object to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(ClientWrapper o)
Specified by:
compareTo in interface java.lang.Comparable<ClientWrapper>

getUpdater

public Updater getUpdater()

setUpdater

public void setUpdater(Updater updater)


Copyright © 2008. All Rights Reserved.