On Mon, May 5, 2008 at 8:35 PM, Peter Neubauer <[EMAIL PROTECTED]> wrote:

>     <T> T newEntity( Class<T> compositeType );

Looks up the given class to find an unambiguous EntityComposite type,
and creates an Entity instance with the Identity generated by a
configured generator.

>     <T> T newEntity( String identity, Class<T> compositeType );

Looks up the given class to find an unambiguous EntityComposite type,
and creates an Entity instance with given identity, unless one already
exists.

>     <T> CompositeBuilder<T> newEntityBuilder( Class<T> compositeType );

Looks up the given class to find an unambiguous EntityComposite type,
and hands you a CompositeBuilder so you can further initialize the
Entity instance before creating it. The identity will be generated by
a configured UUID generator. This allows for prototyping pattern and
many instances can be generated with the same builder.

>     <T> CompositeBuilder<T> newEntityBuilder( String identity,
>  Class<T> compositeType );

Looks up the given class to find an unambiguous EntityComposite type,
and hands you a CompositeBuilder so you can further initialize the
Entity instance before creating it. Identity is provided.

Cheers
Niclas

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

Reply via email to