I'm pretty new to
Java 5, and am defining some annotations to be used as follows:
@BaseProperties({
@BaseProperty(name="formView", value="createPerson"),
@BaseProperty(name="successView", value="createSucceeded")
})
public class ExampleFormController extends SimpleFormController {
..
}
I know I can set the @Target of @BaseProperties to be ElementType.TYPE, but how can I define a suitable @Target of @BaseProperty - so it can only be used within the outer annotation?
I couldn't see a suitable value in ElementType?