Still trying to make the Tutorial use simple business objects instead of
Strings... I need to add minimum support for generics to the Java
interface introspector.
This will allow it to correctly introspect the Cart interface, defined
as follows:
@Remotable
public interface Cart extends Collection<String, Item> {
}
@Remotable
public interface Collection <K, D> {
// Get the whole collection.
Map<K, D> getAll();
// Return a collection resulting from a query.
Map<K, D> query(String queryString);
// Create a new item.
K post(D item);
...
}
With this change Cart.post() will be correctly introspected as:
String post(Item item);
instead of what it is now:
Object post(Object item);
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]