You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Anton Tagunov <at...@mail.cnt.ru> on 2003/06/10 10:14:20 UTC
where can get( Context context, String key, Object defaultValue ) go?
Hi, All!
In serveral places in Fortress I see things like
protected Object get( final Context context, final String key, final Object defaultValue )
{
try
{
return context.get( key );
}
catch ( ContextException ce )
{
return defaultValue;
}
}
it would be nice to have some central place to put it.
Some XXXUtil.
ContextUtil with just one method?
I also have an XXXUtil.makeReadOnly( Object obj ) method in mind
(see my other mail).
Where can that go? To the same class as
get(context, key ,defaultValue)?
WBR, Anton
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org