Why do you need to do such a thing?  What with the power of injection,
object provider prefixes, and throwing in visibility (private vs.
public), injection is the way to go. If you want to access the
Registry directly, you'll need to hold your own reference to it, or
obtain it otherways (the HiveMindFilter stores it into the
ServletContext) ... but this is not recommended.

On 10/17/05, Steven Devijver <[EMAIL PROTECTED]> wrote:
> Hey Knut,
>
> Thanks for your feedback. I want to do a lookup on the registry
> object. How can I do that?
>
> Thanks
>
> Steven
>
> On 17 Oct 2005, at 11:15, Knut Wannheden wrote:
>
> > Steven,
> >
> > Try using the SpringLookupFactory service:
> > http://jakarta.apache.org/hivemind/hivemind-lib/
> > SpringLookupFactory.html.
> >
> > HTH,
> >
> > --knut
> >
> > On 10/16/05, Steven Devijver <[EMAIL PROTECTED]> wrote:
> >
> >> Hey,
> >>
> >> I've set a Spring BeanFactory instance on
> >> hivemind.lib.DefaultSpringBeanFactoryHolder. In Tapestry I can get
> >> access to the beans through the spring prefix. However, I cannot get
> >> access to those beans through the HiveMind registry object:
> >>
> >> Bean bean = (Bean)registry.getService("spring:bean", Bean.class);
> >>
> >> This call fails because the service point spring:bean is not found.
> >>
> >> Is this expected behavior? How can I get hold of my Spring beans
> >> throught the HiveMind registry?
> >>
> >> Thanks
> >>
> >> Steven Devijver
> >> Senior consultant
> >> @ Interface21
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: hivemind-user-
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to