geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan D. Cabrera" <...@toolazydogs.com>
Subject RE: How can I get a reference collection from a GBean?
Date Mon, 20 Dec 2004 17:02:30 GMT
I added

    infoFactory.addOperation("getProtocols");

in addition to the reference below and I can now get this collection via
the call:

    (Collection) kernel.invoke(gbeanName, "getProtocols");

Adding Protocols as an attribute seems to break GBeans.

Regards,
Alan

> -----Original Message-----
> From: Aaron Mulder [mailto:ammulder@alumni.princeton.edu]
> Sent: Monday, December 20, 2004 11:38 AM
> To: dev@geronimo.apache.org
> Subject: Re: How can I get a reference collection from a GBean?
> 
> 	Here's my understanding: The original GBean can declare a
> constructor or setter of type Collection to receive the protocol list.
> Then it could declare a getter for the Collection (or for an array of
> Protocols or whatever) if it wanted to expose that collection to
callers
> (whatever it is that has the ObjectName and wants the collection).  I
> assume it's not another GBean that's asking (in which case it could
just
> declare the same reference itself).
> 
> Aaron
> 
> On Sun, 19 Dec 2004, Alan D. Cabrera wrote:
> > I have the object name of a GBean.  It has a reference, i.e.:
> >
> >
> >
> >         infoFactory.addReference("Protocols", ProtocolGBean.class);
> >
> >
> >
> > How can I get access to its Collection of protocols?
> >
> >
> >
> >
> >
> > Regards,
> >
> > Alan
> >
> >
> >
> >



Mime
View raw message