I would probably handle that via a configuration point in HiveMind.
On 10/22/07, Alejandro Scandroli <
alejandroscandroli@...> wrote:
> Hi James
>
> I'm trying to migrate some Spring code to Hivemind.
> I need to create a Map<String , ComponentAddress> in the Hivemind registry.
> This is what it looks like on spring:
>
> <bean id="viewerService" class="org.trails.descriptor.EditorBlockFinder">
> <property name="defaultBlockAddress">
> <bean class="org.apache.tapestry.util.ComponentAddress">
> <constructor-arg index="0">
> <value>trails:Viewers</value>
> </constructor-arg>
> <constructor-arg index="1">
> <value>stringViewer</value>
> </constructor-arg>
> </bean>
> </property>
> <property name="editorMap">
> <map>
> <entry>
> <key>
> <value>hidden</value>
> </key>
> <bean class="org.apache.tapestry.util.ComponentAddress">
> <constructor-arg index="0">
> <value>trails:Viewers</value>
> </constructor-arg>
> <constructor-arg index="1">
> <value>hidden</value>
> </constructor-arg>
> </bean>
> </entry>
> </map>
> </property>
> </bean>
>
> Alejandro.
>
> On 10/22/07, James Carman <
james@...> wrote:
> > A ComponentAddress, in Tapestry, isn't really a "service", though.
> > Why would you want to put this type of object in your HiveMind
> > registry? I can see it being part of a configuration, but not
> > necessarily a service. What exactly are you trying to do?
> >
> > On 10/22/07, Alejandro Scandroli <
alejandroscandroli@...> wrote:
> > > Hi
> > >
> > > I need to do some constructor-based injection and I can't find the way.
> > > I need to create an instance of
> > > org.apache.tapestry.util.ComponentAddress, the constructor takes 2
> > > Strings as parameters.
> > > I know it should be simple but I'm lost.
> > >
> > > Alejandro.
> > >
> >
>