Given your probleme, symbols seems ,to really be the solution.

The way i understand them hivemind symbols can be used in two way :

-like old symbols on makefile ( to define let's say a directory at
only one place in the module and use the symbol everywhere else)
- to defining attribute or object (or even implementation ) at run time.

To this you have first to create a class that implements the interface:

public class Configurator implements SymbolSource
{
   public String valueForSymbol(String symbol)
   {
     ...
   }
}

And then you have to say to hivemind, through the hivemodule.xml, taht
a new sources for symbol is born :

        <contribution configuration-id="hivemind.SymbolSources">
                <source name="configurator" 
class="user.implementation.Configurator"/>
        </contribution>

Then, when you'll ask hivemind for something that implies a symbol it'll call
the 'valueForSymbol()' with the string contained in the ${...} and replace it.

I hope I respond to your question.  

2005/5/24, Glen Stampoultzis <[EMAIL PROTECTED]>:
> 
>  
>  I've been trying to figure out how I asd symbols to my application but I
> haven't been getting very far.
>  
>  I'm wondering if my problem might not call for symbols at all.  My issue is
> this...
>  
>  I have a bunch of services that have various dependencies between each
> other.  One of the objects these services require can't be known until a
> particular point into the execution of the program.  I was thinking symbols
> sounded like the right idea but after reading the documentation I'm not sure
> how to use them.  None of the examples seem to feature symbols.
>  
>  Can anyone show me a nice small example of how to achieve this?
>  
>  Regards,
>  
>  Glen Stampoultzis
>

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

Reply via email to