> I think Lance was onto the best ideas. The easiest would be to create a Tapestry service for creating your Cayenne objects That's not what I said, infact I said that a factory was a bad since there are multiple sources for these objects.
I was suggesting a service: public class FooServiceImpl implements FooService { @Inject @Symbol(value="someValue") private String someValue; public String doStuffWithFooAndSymbol(Foo foo) { return String.format("%s/%s/%s, someValue, foo.getBar(), foo.getBaz()); } } Then FooService could be @Inject'ed wherever it's required. -- View this message in context: http://tapestry.1045711.n5.nabble.com/use-symbol-value-in-POJO-tp5717426p5717501.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org