This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 61007 - need formatting options for generating complex annotations
Summary: need formatting options for generating complex annotations
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-15 02:03 UTC by Jeri Lockhart
Modified: 2010-09-23 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeri Lockhart 2005-07-15 02:03:46 UTC
The annotations that are generated by JMI can be difficult to read if they have
multliple attributes. 

@MyNormalAnnotation(securityMechID =
"urn:liberty:security:2004-04:null:Bearer",serviceType =
"urn:liberty:sample:cmtchips",resourceID =
"urn:liberty:isf:implied-resource",endpoint = "http://hostname:port",directive =
"GenerateBearerToken:AuthenticateRequester",userName = "amAdmin",password =
"password",serverURL = "http://hostname:port")

@MyNormalAnnotation(ejb-name="NameSessionBean",allow-concurrent-calls="True/False",allow-remove-during-transaction="True/False",bean-load-algorithm="NameAlgorithm",cache-type="NRU/LRU",call-router-class-name="ClassName",clients-on-same-server="True/False",create-as-principal-name="PrincipalName",default-transaction="DefaultTransactionOption",dispatch-policy="DispatchPolicyQueue",enable-call-by-reference="True/False",home-call-router-class-name="ClasName",home-is-clusterable="True/False",home-load-algorithm="LoadAlgorithmOption",idle-timeout-seconds="TimeoutValue",initial-beans-in-free-pool="InitialNumber",is-clusterable="True/False",max-beans-in-cache="MaxNumber",max-beans-in-free-pool="MaxNumber",methods-are-idempotent="True/False",passivate-as-principal-name="PrincipalName",persistent-store-dir="DirectoryName",remove-as-principal-name="PrincipalName",replication-type="InMemory/None",run-as="RoleName",run-as-identity-principal="PrincipalName",trans-timeout-seconds="Seconds",transaction-type="Bean/Container",type="Stateless/Stateful",use-caller-identity="True/False")


This is a request to provide the option of generating attributes on separate
lines, for the second and subsequent attributes.  The annotations above would
be generated like this;

@MyNormalAnnotation(securityMechID = "urn:liberty:security:2004-04:null:Bearer",
        serviceType = "urn:liberty:sample:cmtchips",
        resourceID = "urn:liberty:isf:implied-resource",
        endpoint = "http://hostname:port",
        directive = "GenerateBearerToken:AuthenticateRequester",
        userName = "amAdmin",
        password = "password",
        serverURL = "http://hostname:port")



@MyNormalAnnotation2(ejb-name="NameSessionBean",
	      allow-concurrent-calls="True/False",
              allow-remove-during-transaction="True/False",
              bean-load-algorithm="NameAlgorithm",
              cache-type="NRU/LRU",
              call-router-class-name="ClassName",
              clients-on-same-server="True/False",
              create-as-principal-name="PrincipalName",
              default-transaction="DefaultTransactionOption",
              dispatch-policy="DispatchPolicyQueue",
              enable-call-by-reference="True/False",
              home-call-router-class-name="ClasName",
              home-is-clusterable="True/False",
              home-load-algorithm="LoadAlgorithmOption",
              idle-timeout-seconds="TimeoutValue",
              initial-beans-in-free-pool="InitialNumber",
              is-clusterable="True/False",
              max-beans-in-cache="MaxNumber",
              max-beans-in-free-pool="MaxNumber",
              methods-are-idempotent="True/False",
              passivate-as-principal-name="PrincipalName",
              persistent-store-dir="DirectoryName",
              remove-as-principal-name="PrincipalName",
              replication-type="InMemory/None",
              run-as="RoleName",
              run-as-identity-principal="PrincipalName",
              trans-timeout-seconds="Seconds",
              transaction-type="Bean/Container",
              type="Stateless/Stateful",
              use-caller-identity="True/False")

@MySimpleAnnotation("some value",
                    "another value",
                    "one more")

This would enhance readability of the annotations and make them easier to edit
manually.
Comment 1 Petr Jiricka 2005-07-25 18:15:50 UTC
I agree this is a very reasonable request.
Comment 2 David Strupl 2010-09-23 09:14:29 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.