Module com.gluonhq.cloudlink.client
Class GluonCloudUpdateFieldReader<T>
- java.lang.Object
-
- com.gluonhq.impl.cloudlink.client.data.GluonCloudUpdateFieldReader<T>
-
- All Implemented Interfaces:
ObjectDataReader<Void>
public class GluonCloudUpdateFieldReader<T> extends Object implements ObjectDataReader<Void>
-
-
Constructor Summary
Constructors Constructor Description GluonCloudUpdateFieldReader(String fieldName, GluonObservableListImpl<T> list, T object, String objectIdentifier, OperationMode operationMode)
GluonCloudUpdateFieldReader(String fieldName, GluonObservableObjectImpl<T> object, OperationMode operationMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GluonObservableObject<Void>
newGluonObservableObject()
Provide an instance of a GluonObservableObject.Void
readObject()
Reads the object and returns it.
-
-
-
Constructor Detail
-
GluonCloudUpdateFieldReader
public GluonCloudUpdateFieldReader(String fieldName, GluonObservableObjectImpl<T> object, OperationMode operationMode)
-
GluonCloudUpdateFieldReader
public GluonCloudUpdateFieldReader(String fieldName, GluonObservableListImpl<T> list, T object, String objectIdentifier, OperationMode operationMode)
-
-
Method Detail
-
newGluonObservableObject
public GluonObservableObject<Void> newGluonObservableObject()
Description copied from interface:ObjectDataReader
Provide an instance of a GluonObservableObject. This method is called byDataProvider.retrieveObject(ObjectDataReader)
to get a GluonObservableObject that will contain the actual object when the retrieve operation has completed successfully. Most implementations will just return an instance of GluonObservableObject itself. Note that it is perfectly valid to return existing instances of GluonObservableObject.- Specified by:
newGluonObservableObject
in interfaceObjectDataReader<T>
- Returns:
- an instance of a GluonObservableObject
-
readObject
public Void readObject()
Description copied from interface:ObjectDataReader
Reads the object and returns it. The actual source of the read and the method that converts the read data into an object instance is completely left to the implementation. This method is called byDataProvider.retrieveObject(ObjectDataReader)
to initiate the actual read process. The returned object will be set on the GluonObservableObject that is returned in theObjectDataReader.newGluonObservableObject()
method.- Specified by:
readObject
in interfaceObjectDataReader<T>
- Returns:
- the read object
-
-