Download Sources

com.liguorien.flex.generator
Annotation Type FlexPackage


@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).

Version:
0.2
Author:
Nicolas Désy
See Also:
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.
 

clientEntities

public abstract java.lang.String clientEntities

Set the destination package for generated entity classes for the client.

Default:
""

clientBuilders

public abstract java.lang.String clientBuilders

Set the destination package for generated builder classes for the client.

Default:
""

serverBuilders

public abstract java.lang.String serverBuilders

Set the destination package for generated builder classes for the server.

Default:
""

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.