+1
I loathe while(true) (but its a personal taste) - here is a shorter non
while(true) version:
if (!aliases.isEmpty()) {
String aliasedName = name;
DirContext dirContext = aliases.get(aliasedName);
while (dirContext!=null) {
int slash = aliasedName.lastIndexOf('/');
Konstantin Kolinko wrote:
> 2009/5/27 Mark Thomas :
>> All,
>>
>> I have been looking into adding alias support to DirContext so
>> applications can pull in resources from external locations. I looked at
>> a couple of alternatives and settled on this patch (against trunk) as a
>> starting point:
>
2009/5/27 Mark Thomas :
> All,
>
> I have been looking into adding alias support to DirContext so
> applications can pull in resources from external locations. I looked at
> a couple of alternatives and settled on this patch (against trunk) as a
> starting point:
> http://people.apache.org/~markt/p