Re: [PROPOSAL] Adding support for aliases to DirContext

2009-05-28 Thread Tim Funk
+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('/');

Re: [PROPOSAL] Adding support for aliases to DirContext

2009-05-27 Thread Mark Thomas
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: >

Re: [PROPOSAL] Adding support for aliases to DirContext

2009-05-26 Thread Konstantin Kolinko
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