|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface FlexPackage
Used to define the package of generated classes.
This annotation can only be used on class declaration.
There is 3 possible package destination : clientEntities(),
clientBuilders() and serverBuilders().
By default, each generated classes are in the same package as the orginal Java entity.
Here is a little intro on the syntax used to define the package name. Let's supose that we have the entity class com.mycompany.myproject.entities.Person :
| @FlexPackage(serverBuilders="builder") | com.mycompany.myproject.entities.builder.PersonBuilder |
| @FlexPackage(serverBuilders="../builder") | com.mycompany.myproject.builder.PersonBuilder |
| @FlexPackage(serverBuilders="/org.otherproject.builder") | org.otherproject.builder.PersonBuilder |
If the annotation is not declared on the entity class, the generator
will lookup in his own map which can be configurated with
FlexGenerator.setPackage(com.liguorien.flex.generator.utils.ClassType, java.lang.String).
FlexGenerator.setPackage(com.liguorien.flex.generator.utils.ClassType, java.lang.String)| Optional Element Summary | |
|---|---|
java.lang.String |
clientBuilders
Set the destination package for generated builder classes for the client. |
java.lang.String |
clientEntities
Set the destination package for generated entity classes for the client. |
java.lang.String |
serverBuilders
Set the destination package for generated builder classes for the server. |
public abstract java.lang.String clientEntities
Set the destination package for generated entity classes for the client.
public abstract java.lang.String clientBuilders
Set the destination package for generated builder classes for the client.
public abstract java.lang.String serverBuilders
Set the destination package for generated builder classes for the server.
|
FlexGenerator | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||