"alesj" wrote :
| Since WritethroughManagedPropertyImpl is exactly what we need on the server side, but
we definitely don't want to push/serialize this to the client.
|
I'm thinking about something similar to this:
I would like to change the serialization marshaler for a particular invocation.
e.g. ManagementView.getComponentsForType(ComponentType type)
| public Set<ManagedComponent> getComponentsForType(ComponentType type)
| throws Exception
| {
| SerializationMarshaller old = SerializationUtil.getCurrentMarshaller();
| try
| {
| SerializationMarshaller wmpi = WMPIClientMarshaler.INSTANCE;
| SerializationUtil.setCurrentMarshaller(wmpi);
| return compByCompType.get(type);
| }
| finally
| {
| SerializationUtil.setCurrentMarshaller(old);
| }
| }
|
Where the WMPIClientMarshaler would marshall all WritethroughManagedPropertyImpl to
ManagedPropertyImpl.
Or is this too hacky?
Or even impossible? :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091513#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...