is this possible? in the following code, services is always null, tips? public static void contributeAlias(Configuration<AliasContribution> configuration) {
BaseURLSource source = new BaseURLSource() { @Inject private Services services; public String getBaseURL(boolean secure) { String protocol = secure ? "https" : "http"; return String.format("%s://www.%s", protocol, services.getDomain()); } }; configuration.add(AliasContribution.create(BaseURLSource.class, source)); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-accessing-a-service-from-a-contributed-class-tp3383911p3383911.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