[
https://issues.apache.org/jira/browse/POLYGENE-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453709#comment-16453709
]
Niclas Hedhman commented on POLYGENE-306:
-----------------------------------------
First thing is to figure out how to create Annotations at bootstrap at all.
Adding annotation() and p() to Classes utility, would make this syntax
relatively ok
{code:java}
D underTest = annotation( D.class,
p( "intValue", 8 ),
p( "longValue", 234L ),
p( "strings", new String[]{ "1", "2" } ) );
@interface D
{
boolean booleanValue() default true;
String stringValue() default "Abc";
int intValue();
String[] strings();
long longValue() default 123L;
}
{code}
> Possibility to add annotations on methods at bootstrap
> ------------------------------------------------------
>
> Key: POLYGENE-306
> URL: https://issues.apache.org/jira/browse/POLYGENE-306
> Project: Polygene
> Issue Type: New Feature
> Reporter: Niclas Hedhman
> Priority: Major
>
> Currently we can manipulate types pretty much freely at bootstrap, but we
> can't add annotations to methods, which would be useful for instance when
> working with external types not under one's control.
> This will need to add metaInfo to Property and add the annotation there,
> rather than trying to compile it into the method itself.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)