commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@vafer.org>
Subject Re: Version classes
Date Wed, 15 Sep 2010 12:57:41 GMT
IMO the thread showed that there are enough ways to get to that
information today.
I would not bother and call for the vote.

On Wed, Sep 15, 2010 at 14:54, Simone Tripodi <simone.tripodi@gmail.com> wrote:
> I'm going to call a vote for a new Digester release, shall this new
> stuff be included in the release?
> thanks in advance,
> Simo
>
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>
>
>
> On Wed, Sep 15, 2010 at 2:41 PM, Jochen Wiedmann
> <jochen.wiedmann@gmail.com> wrote:
>>> James Carman wrote:
>>
>>> We use a method like this:
>>>
>>> public static String versionOf(Class c) {
>>>   final String version = c.getPackage().getImplementationVersion();
>>>   return StringUtils.isEmpty(version) ? "n/a" : version;
>>> }
>>>
>>> So, if you want to know what version of Hibernate you're using, you'd do:
>>>
>>> versionOf(org.hibernate.Session.class);
>>
>> Implementation note: getPackage() must be checked against null.
>>
>> Jochen
>>
>>
>> --
>> I Am What I Am And That's All What I Yam (Popeye)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message