Are there any provisions already to add description text to @Service POJOs and
their methods?
Currently, @Service POJOs descriptions, as seen through the JMX console, are
all default or missing:
"Information on the management interface of the MBean"
"Attribute exposed for management"
"(no description)"
Perhaps something along the lines of
--- SNIP ---
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Description {
String[] value();
}
--- SNIP ---
In case of methods, multiple descriptions should be matched with the arguments
in sequence.
Another nice-to-have would be a Logger annotation, which helps avoid redundant
code (class name replication)
--- SNIP ---
public class SomeService implements SomeServiceIF {
@Logger private static Logger log;
...
--- SNIP ---
instead of
--- SNIP ---
public class SomeService implements SomeServiceIF {
private static Logger log = Logger.getLogger(SomeService.class);
...
--- SNIP ---
Feedback would be appreciated.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945582#3945582
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945582
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user