Ok, that makes sense.

Just wondering, should ComputedPropertyInstance be implementing
ImmutableProperty?
Or, is that by mistake? I see that ImmutablePropertyInstance also has
"implements ImmutableProperty".

Anyhow, it looks like to me that given a "Property property" at
runtime, there is no way to know whether that property can be set or
not. If property is an instanceof ImmutableProprety, it obviously
cannot be set. But nothing can be said about subclasses of
ComputedPropertyInstance.

In this case, the only way to do it would be to try to set a property
in a try-catch block, and see if an exception is thrown.
Is that right, or am I missing something?

I am facing this situation in my Tree control for composites in the
pet-clinic sample.
When overriding JTree.isPathEditable(), I need to return true or false
depending on whether the selected property allows editing, but there
appears to be no way to do it...

Thanks,
Sonny

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to