You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Daniel Gong <da...@gmail.com> on 2009/04/10 06:24:50 UTC

[GSoC] My question about class-selector

Hi all,

    After several days' consideration, I still have this question.
    We should decide classes that will be included in jre before the
application is used by the customer. Then my question is, how can we know
what classes will be dynamicly loaded according to the user input by dynamic
trace? I mean, we don't know what classes name the user will input to load
it by reflection.

Yours Daniel

Re: [GSoC] My question about class-selector

Posted by Daniel Gong <da...@gmail.com>.
Hi Regis,

    I've answered your questions to my proposal by adding comment.
    Thanks for your attention~Best withes~

Yours Daniel
On Fri, Apr 10, 2009 at 2:09 PM, Regis <xu...@gmail.com> wrote:

>  Daniel Gong wrote:
>
>> Hi all,
>>
>>    After several days' consideration, I still have this question.
>>    We should decide classes that will be included in jre before the
>> application is used by the customer. Then my question is, how can we know
>> what classes will be dynamicly loaded according to the user input by
>> dynamic
>> trace? I mean, we don't know what classes name the user will input to load
>> it by reflection.
>>
>> Yours Daniel
>>
>>
> Good question. My answer is we would never know all classes dynamically
> loaded at runtime. Think about application server, where all applications
> are deployed at runtime, generate a minimized JRE for this system, I
> believe, is a impossible mission.
>
> I think the purpose of class-selector is helping application which don't
> depends on dynamical class loading or knows (at deployment time) which
> classes will be dynamically loaded. There are a lots of java desktop
> applications, they may be never changed after deploying, so I think it's one
> scenario for class-selector. You may can find more places for class-selector
> :)
>
> --
> Best Regards,
> Regis.
>

Re: [GSoC] My question about class-selector

Posted by Regis <xu...@gmail.com>.
Daniel Gong wrote:
> Hi all,
> 
>     After several days' consideration, I still have this question.
>     We should decide classes that will be included in jre before the
> application is used by the customer. Then my question is, how can we know
> what classes will be dynamicly loaded according to the user input by dynamic
> trace? I mean, we don't know what classes name the user will input to load
> it by reflection.
> 
> Yours Daniel
> 

Good question. My answer is we would never know all classes dynamically loaded 
at runtime. Think about application server, where all applications are deployed 
at runtime, generate a minimized JRE for this system, I believe, is a impossible 
mission.

I think the purpose of class-selector is helping application which don't depends 
on dynamical class loading or knows (at deployment time) which classes will be 
dynamically loaded. There are a lots of java desktop applications, they may be 
never changed after deploying, so I think it's one scenario for class-selector. 
You may can find more places for class-selector :)

-- 
Best Regards,
Regis.

Re: [GSoC] My question about class-selector

Posted by Daniel Gong <da...@gmail.com>.
Thanks, I had the same consideration that it is rarely the case so we just
ignore it. I just want make sure that it is OK that I won't consider this
problem in the class-selector.

More, in fact, I mean the classes will be loaded will depend on user input.
Entering class names seems strange in applications, but selecting classes
depend on user input is not so strange as the former one.

Yours Daniel

2009/4/10 Alexei Fedotov <al...@gmail.com>

> Daniel,
> Most applications do not require a user to enter class names. Just
> keep these applications out of a scope of your tool.
>
> Thanks.
>
>
>
> On Fri, Apr 10, 2009 at 8:24 AM, Daniel Gong
> <da...@gmail.com> wrote:
> > Hi all,
> >
> >    After several days' consideration, I still have this question.
> >    We should decide classes that will be included in jre before the
> > application is used by the customer. Then my question is, how can we know
> > what classes will be dynamicly loaded according to the user input by
> dynamic
> > trace? I mean, we don't know what classes name the user will input to
> load
> > it by reflection.
> >
> > Yours Daniel
> >
>
>
>
> --
> With best regards / с наилучшими пожеланиями,
> Alexei Fedotov / Алексей Федотов,
> http://www.telecom-express.ru/
> http://people.apache.org/~aaf/
> http://harmony.apache.org/
> http://code.google.com/p/openmeetings/
>

Re: [GSoC] My question about class-selector

Posted by Alexei Fedotov <al...@gmail.com>.
Well, sorry for English. Should be:

Most applications do not require a user to enter class names. Just
limit the scope of your tool to these applications.


2009/4/10 Alexei Fedotov <al...@gmail.com>:
> Daniel,
> Most applications do not require a user to enter class names. Just
> keep these applications out of a scope of your tool.
>
> Thanks.
>
>
>
> On Fri, Apr 10, 2009 at 8:24 AM, Daniel Gong
> <da...@gmail.com> wrote:
>> Hi all,
>>
>>    After several days' consideration, I still have this question.
>>    We should decide classes that will be included in jre before the
>> application is used by the customer. Then my question is, how can we know
>> what classes will be dynamicly loaded according to the user input by dynamic
>> trace? I mean, we don't know what classes name the user will input to load
>> it by reflection.
>>
>> Yours Daniel
>>
>
>
>
> --
> With best regards / с наилучшими пожеланиями,
> Alexei Fedotov / Алексей Федотов,
> http://www.telecom-express.ru/
> http://people.apache.org/~aaf/
> http://harmony.apache.org/
> http://code.google.com/p/openmeetings/
>



-- 
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://www.telecom-express.ru/
http://people.apache.org/~aaf/
http://harmony.apache.org/
http://code.google.com/p/openmeetings/

Re: [GSoC] My question about class-selector

Posted by Alexei Fedotov <al...@gmail.com>.
Daniel,
Most applications do not require a user to enter class names. Just
keep these applications out of a scope of your tool.

Thanks.



On Fri, Apr 10, 2009 at 8:24 AM, Daniel Gong
<da...@gmail.com> wrote:
> Hi all,
>
>    After several days' consideration, I still have this question.
>    We should decide classes that will be included in jre before the
> application is used by the customer. Then my question is, how can we know
> what classes will be dynamicly loaded according to the user input by dynamic
> trace? I mean, we don't know what classes name the user will input to load
> it by reflection.
>
> Yours Daniel
>



-- 
With best regards / с наилучшими пожеланиями,
Alexei Fedotov / Алексей Федотов,
http://www.telecom-express.ru/
http://people.apache.org/~aaf/
http://harmony.apache.org/
http://code.google.com/p/openmeetings/