Docsity

Hidden Assumptions - Clouds and Power-Aware Computing - Lecture Slides, Slides of Computer-Aided Power System Analysis

Toggle sidebar
bg1
Anything that is an input to or return value from an Async
service has to be stored in a SOAP query or response,
Which means it has to be storable in XML,
Which means that it has to be storable as text,
Which is enabled by implementing the Serializable
interface.
Note that there are some hidden assumptions in what data you
can put where.
Primitive classes: double, etc.
Base data types: String, etc.
Templates whose parameters are Serializable classes,
e.g. List<S>, Map<S,S>, etc, where S implements
Serializable.
Anything you force to implement Serializable.
What implements Serializable?
but you cannot return a List<Foo>,
unless your class Foo implements Serializable,
and your code won't compile until it does!
This means that:
For more details, see:
Assignment 1 hint
A1_Hint Page 1
Docsity.com

Partial preview of the text

Download Hidden Assumptions - Clouds and Power-Aware Computing - Lecture Slides and more Slides Computer-Aided Power System Analysis in PDF only on Docsity!

Anything that is an input to or return value from an Async service has to be stored in a SOAP query or response, Which means it has to be storable in XML , Which means that it has to be storable as text, Which is enabled by implementing the Serializable interface. Note that there are some hidden assumptions in what data you can put where. Primitive classes: double, etc. Base data types: String, etc. Templates whose parameters are Serializable classes, e.g. List, Map<S,S>, etc, where S implements Serializable. Anything you force to implement Serializable. What implements Serializable? You can return a List from a service, but you cannot return a List, unless your class Foo implements Serializable, and your code won't compile until it does! This means that: For more details, see: Assignment 1 hint A1_Hint Page 1 Docsity.com