On Tue, 28 Jul 2015 10:31:55 -0300, Poggenpohl, Daniel
<daniel.poggenp...@isst.fraunhofer.de> wrote:
Hello,
Hi!
I want to provide additional configuration on startup to my Tapestry
application. I want to store the additional configuration in a file
containing lines "key=value".
I know I can contribute a symbol provider to load a file and access the
symbols this way.
But I can't find the documentation for
- How to write a Symbol Provider
Implement the SymbolProvider interface. It has a single method, String
valueForSymbol(String symbolName). It should return a String if that
implementation provides a value for that symbol name and null if not.
- what method to write in the AppModule to contribute the Symbol Provider
public static void
contributeSymbolProvider(OrderedConfiguration<SymbolProvider>
configuration) {
configuration.add("MyProvider", new YourSymbolProviderImplementation(),
"before:*");
}
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org