Pawel,
APT is used to process the annotations in Java 1.5. That said,
without changing the page flow code you can't just add new things to
an annotation, since that would be like changing a class. You could
try to define a new set of annotations though and process those with
APT though, maybe something like this:
@SimpleBusinessLayer(simpleBusinessLayerActions =
[EMAIL PROTECTED](name="actionName", …)}, …)
@Jpf.Controller()
class ControllerClass {
…
On 5/29/06, Pawel Kozlowski <[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to figure out if it would be possible to define my own,
controller-level annotations (sth similar to SimpleAction annotation). I
knead this annotation in order to easily call methods from the business
layer.
My flows have no logic, only calls to the business layer. That's why I
want to avoid writing a lot of basic method actions – instead I would like
to have sth like:
@Jpf.Controller(simpleBusinessLayerActions =
[EMAIL PROTECTED](name="actionName", …)}, …)
class ControllerClass {
…
Is it possible to modify Beehivie in order to achieve a described effect?
Or more generally, how (and where) Jpf annotations are processed?
Would be grateful for any help.
Best regards,
Pawel Kozlowski