dev@glassfish.java.net

[Fwd: Computed default value question]

From: Chris Kasso <chris.kasso_at_oracle.com>
Date: Fri, 10 Dec 2010 11:06:39 -0800

I sent this question just as the migration was starting and never saw
any responses so I'll try once more...

Chris

attached mail follows:



I have a configbean where I need to compute the default value so I
can't use @Attribute(defaultValue=="XXXX"). I would like the
getter method to return this computed value if the attribute
was never set.

In my scenario the computed default could be established when the bean
is instantiated or when the getter is invoked.

Is there a way to do this with our ConfigBeans?

thanks,
Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: dev-help_at_glassfish.dev.java.net