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: [email protected]
For additional commands, e-mail: [email protected]