On Wed, Feb 9, 2011 at 1:52 PM, Edward Yakop <[email protected]> wrote:
> Bunch of questions:
>
> What is the advantage of using Class instead of the current mechanism?

Often we are faced of having external projects as class hierarchies
instead of interfaces. It is useful to be able to extend some of these
with Qi4j features.

> Would deep graph object supported?

We discussed this a bit. Can't recall what the conclusion was... I
think we said that it is possible to override newInstance() in the
Frgament Classloader to intercept the 'new' keyword and potentially
support object graphs.

> Transient within another transient?

Isn't that the question above?

> How do I declare properties and associations?

Associations are kind of out of the question, unless providing your
own implementation, as the AssociationMixin sits on the
EntityComposite.

Properties; Define them in an interface and use @This.

public interface AdditionalState {
    Property<String> category();
}

public class MyFunkyExtension extends SomeCoolProjectClass
{
    @This private AdditionalState moreState;
}



Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I live here; http://tinyurl.com/3xugrbk
I work here; http://tinyurl.com/24svnvk
I relax here; http://tinyurl.com/2cgsug

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

Reply via email to