org.chromattic.api.annotations
Annotation Type Create


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Create

Defines a creator method to create transient instances of a Chromattic entity. The annotated method can have the following arguments:

The type of the of the returned entity is defined by the return type of the method that must be the type of a registered instantiatable Chromattic entity. After the invocation of the method, the status of the entity will be equals to Status.TRANSIENT.

Version:
$Revision$
Author:
Julien Viet



Copyright © 2011 eXo Platform SAS. All Rights Reserved.