File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Java in General
Joined: Oct 08, 2008
Dec 14, 2011 21:30:39
Am new to
annotations. There anyway I can add flag based annotations. In case if I want to change or remove some annotations I can do that by changing the flag and not by changing the code.
Joined: Oct 27, 2005
Dec 15, 2011 05:05:44
No, annotations and their values are always part of the source code. The values must be compile time constants as well -
literals, primitives, enums or Class objects.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Java Annotations
why can't we use Annotation for when we Creating a Java Stand-Alone Client
[JSF 2] @javax.faces.bean.ManagedBean or @javax.inject.Named ?
Hiding images bound to sliders
Xml based configration Vs Annotation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014