You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Peter Royal <pr...@apache.org> on 2002/04/24 19:20:13 UTC
ComponentSelector's in fortress
I'm curiuous as to the design intentions of handling ComponentSelector's with
fortress.
Currently if you declare multiple components for a role in your
configuration, the id attribute is used as the hint and a ComponentSelector
is automatically generated for you.
I'm wrestling with how to integrate this with the new XMLizer. The XMLizer
can't be used as-is in fortress since it is based off of the
ExcaliburComponentSelector which needs a logkit logger that fortress cannot
provide.
The individual XMLizer's for various mime types are LogEnabled, so it is
possible to use them without the XMLizerimpl, as long as you only use a
single one.
Fortress removes the need for the ExcaliburComponentSelector as it handles
all of the initialization that it used to do, but you loose the ability to
customize the behavior of the ComponentSelector.
I propose adding the following capabilities to fortress:
1) Force a certain component type to be a selector even if there is only a
single declaration (SourceResolver would also benefit from this, as
SourceResolverImpl expects a ComponentSelector for its SourceFactories)
2) Extend fortress to allow users to plug in a custom ComponentSelector. This
is basically removing the ContainerComponentSelector from inside of
AbstractContainer and allowing the user to extend it.
.. or any alternate solutions to the problem :)
-pete
--
peter royal -> proyal@apache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Altrmi] StubGenerator
Posted by Vinay Chandran <vi...@yahoo.com>.
Peter,
> I thought it would be a good exercise to learn BCEL
> and bytecode in general.
Its is .
> Its slightly easier since you already have your
> output well defined!
I am working upwards readin the bytecodes of the
generated stubs.
Infact,got my first set of unit tests for the
generator working well for the BCEL generated-stubs:-)
Regards,
(\_V.i.n.a.y_/)
--- Peter Royal <pr...@apache.org> wrote:
> On Wednesday 24 April 2002 08:11 pm, Vinay Chandran
> wrote:
> > Infact to write BCEL stub-generator for the Altrmi
> > is a painful FUN too.:-)(
>
> -pete
>
> --
> peter royal -> proyal@apache.org
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Altrmi] StubGenerator
Posted by Peter Royal <pr...@apache.org>.
On Wednesday 24 April 2002 08:11 pm, Vinay Chandran wrote:
> Infact to write BCEL stub-generator for the Altrmi
> is a painful FUN too.:-)(
I thought it would be a good exercise to learn BCEL and bytecode in general.
Its slightly easier since you already have your output well defined!
-pete
--
peter royal -> proyal@apache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Altrmi] StubGenerator
Posted by Paul Hammant <pa...@yahoo.com>.
Vinay,
> why class[] array in dftproxyhelper?
The class array is added because the instanceof checking for marshalling
corrections was trying to instantiate primatives etc. That was a bug, but
also the whole thing is 30% faster now. Follow the use the cthe class array
through to the marshall correction method....
- paul h
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Altrmi] StubGenerator
Posted by Vinay Chandran <vi...@yahoo.com>.
Peter,
I guess Paul would have the best idea since
he wrote the stub generator ; but of what I know
we should NOT intend on getting primitive classes or
primitive arrays into this class array maintained
within the stub.
The elements within the class array is used by
CallbackEnabled streams to keep a note internally,
so that when the server comes asking for these
classes ,it receives the stubs and thus the
callbacks.
It was added by Paul in version 1.5 of
ProxyGeneratorImpl , and thus he will be the right
person for this.
Infact to write BCEL stub-generator for the Altrmi
is a painful FUN too.:-)(
Regards,
( _ V.i.n.a.y _/)
--- Peter Royal <pr...@apache.org> wrote:
> On Wednesday 24 April 2002 03:13 pm, Vinay Chandran
> wrote:
> > Moreover this class array is being populated by
> > applending ".class" at the end of the Class name
> > of the argument.
> >
> > This would NOT work for ARRAY parameters.
> > mClassSource.println( " argClasses[" + i + "] =
> " +
> > clazz.getName() + ".class;" );
>
> I fixed that earlier today (just committed patch
> after testing a bit) as I
> hit it. I know nothing of the design plans behind
> the change though.
> -pete
>
> --
> peter royal -> proyal@apache.org
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Altrmi] StubGenerator
Posted by Peter Royal <pr...@apache.org>.
On Wednesday 24 April 2002 03:13 pm, Vinay Chandran wrote:
> Moreover this class array is being populated by
> applending ".class" at the end of the Class name
> of the argument.
>
> This would NOT work for ARRAY parameters.
> mClassSource.println( " argClasses[" + i + "] = " +
> clazz.getName() + ".class;" );
I fixed that earlier today (just committed patch after testing a bit) as I
hit it. I know nothing of the design plans behind the change though.
-pete
--
peter royal -> proyal@apache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
[Altrmi] StubGenerator
Posted by Vinay Chandran <vi...@yahoo.com>.
Hi Paul,
ProxyGeneratorImpl now develops a
new Class[] and stuffs it into the
stub .
Any particular reason you employed this?
(My fever has kept me out of snyc over the past
few weeks on many battle fronts )
Moreover this class array is being populated by
applending ".class" at the end of the Class name
of the argument.
This would NOT work for ARRAY parameters.
mClassSource.println( " argClasses[" + i + "] = " +
clazz.getName() + ".class;" );
Is this Class[] used ONLY as a means to ease the
marshalling code in the DefaultProxyHelper or
do you intend using it for some other deal?
Regards,
V i n a y
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>