commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kohsuke Kawaguchi <kohsuke.kawagu...@sun.com>
Subject Re: [javaflow] a problem in ResourceTransformer abstraction
Date Tue, 27 Dec 2005 19:35:39 GMT
Kohsuke Kawaguchi wrote:
> Kohsuke Kawaguchi wrote:
>> So I suggest we introduce a mechanism to resolve symbols to their class 
>> files:
>> 
>>    interface ClassImageLoader {
>>      byte[] load(String className);
>>    }
>> 
>> .. and change ResourceTransformer as follows:
>> 
>>    interface ResourceTransformer {
>>      byte[] transform(String className, ClassImageLoader loader);
>>    }

and ClassImageLoader should probably return InputStream, not byte[], and 
it should throw ClassNotFoundException.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com

Mime
View raw message