Questions tagged [autobean]

The AutoBean Framework provides automatically-generated implementations of bean-like interfaces and a low-level serialization mechanism for those interfaces. AutoBeans can be used in both client and server code to improve code re-use. For example, the Requestfactory system uses AutoBeans extensively in both the client and server code.

The AutoBean framework provides automatically-generated implementations of bean-like interfaces and a low-level serialization mechanism for those interfaces. AutoBeans can be used in both client and server code to improve code re-use. For example, the Requestfactory system uses AutoBeans extensively in both the client and server code. This document describes the state of AutoBeans as found in the GWT 2.1.1 release.

62 questions
0
votes
1 answer

AutoBeanFactory map Json property names

I am currently checking out a decent way for (de)-serializing objects within GWT. Seems all nice and dandy, but I cannot find an answer to the following problem: Given I have in interface such as: public interface OAuth { String…
John Smith
  • 752
  • 9
  • 35
0
votes
1 answer

GWT (model) interface/class

I am working on a GWT project and are a bit confused. Its a server/client project. I am handling the json with Autobean. Autobean needs to use interfaces to work. I haven't work so much with interfaces before and need some help. This is how the…
MDK
  • 95
  • 1
  • 1
  • 8
0
votes
1 answer

Google Web Toolkit Autobeans

Due to curiosity, I checked how autobeans are generated. I found it uses sun.misc.ProxyGenerator class to generate autobean proxies and that it uses reflections. But I do not understand, how does it work on client-side. Are those methods that use…
Heisenberg
  • 3,153
  • 3
  • 27
  • 55
0
votes
1 answer

AutoBean complex JSON parse

I have a complex JSON String and i try to parse it using AutoBean. The JSON String looks like : `{ "status": "OK", "result": { "geometry": [ [ { "X": 268347.4, "Y": 6743983.1 }, { "X": 268341.1, "Y":…
Waelkat
  • 80
  • 10
0
votes
1 answer

Parsing JSON array using Autobean

I have a JSON which I'd like to parse using Autobean. I'm getting NullPointerException in the for loop, probably persons.getPersons() AppAutoBeanFactory factory = GWT.create(AppAutoBeanFactory.class); AutoBean bean…
DropDropped
  • 1,253
  • 1
  • 22
  • 50
0
votes
2 answers

GWTMockito: How to mock AutoBeanCodex?

I have tests which I am writing that use AutoBeanCodex to encode and decode AutoBeans. When I try to test methods which use AutoBeanCodex.decode(...), I get errors like the following: java.lang.ClassCastException: …
Jonathan
  • 705
  • 5
  • 16
0
votes
1 answer

GWT AutoBean category

I'm trying to get @Category(class) in AutoBean to work. I have a simple factory import com.google.web.bindery.autobean.shared.AutoBean; import com.google.web.bindery.autobean.shared.AutoBeanFactory.Category; @Category(TestCategory.class) public…
brange
  • 270
  • 4
  • 16
0
votes
1 answer

which interfaces representations to deserialize from JSON to AutoBean?

I have the following JSON : { "bean1": { "bean12": { "value1": 4500, "value2": 1500 }, "bean13": { "value1": 1550, "value2": 550 } } } I try to deserialize this json with AutoBean, since…
3logy
  • 2,634
  • 8
  • 46
  • 99
0
votes
1 answer

How to implement method with params with AutoBean?

I have the following Interface : public interface beanExample { public BigDecimal norm(BigDecimal dec); } and then i create a Category for it: public class beanExampleCategory { public static BigDecimal norm(BigDecimal dec) { return dec…
3logy
  • 2,634
  • 8
  • 46
  • 99
0
votes
1 answer

How can you use GWT AutoBeans to parse a JSON message when some of the return values could be an object or a collection of objects?

Is it possible to parse a JSON message using GWT AutoBeans when one of the objects returned may be a collection but not always? For example, if I have a JSON message returning an author and his/her associated writings, it's possible that there could…
Bionic_Geek
  • 536
  • 4
  • 24
0
votes
1 answer

Can GXT and AutoBeans process XML when the root node has a namespace declaration?

I have an XML message I am attempting to parse using GXT and AutoBeans. The root node of my XML has a namespace declaration and it appears that the AutoBean parser cannot read the XML. I set up the root of the AutoBean object graph with a…
Bionic_Geek
  • 536
  • 4
  • 24
0
votes
2 answers

Jar containing AutoBeanFactoryMagic

What is the jar that I should include to use this package: import com.google.gwt.autobean.server; I try to use the following class on the servlet: AutoBeanFactoryMagic I use GWT 2.4 Thanks
Spiff
  • 3,873
  • 4
  • 25
  • 50
0
votes
2 answers

GWT Autobean set initial value of created interface

We are using AutoBeans to create our Pojo objects for use in RPC-Calls. What is the recommended approach for the Pojo to have a default value or other class initialization? For example public interface SamplePojo { // should default to…
Kenoyer130
  • 6,874
  • 9
  • 51
  • 73
0
votes
1 answer

GWT RPC call with interface as parameter using AutoBeans

I've tried adding AutoBeans into our GWT app to serialize our objects out to cookies, then read them back. However, I'm having trouble invoking a GWT RPC method call with the deserialized object after this. Can anyone provide any insight as to…
Cuga
  • 17,668
  • 31
  • 111
  • 166
0
votes
1 answer

RF 'Unfrozen bean with null RequestContext' when using a ValueProxy param with JsonRpc dialect

When i try to send a request that uses a ValueProxy params i'm getting this 'Unforzen bean' exception. I don't know if this exception is because a bug with RF using JsonDialect or i'm doing something wrong... ¿Some help? java.lang.AssertionError:…