标签:style class blog code color strong
Tapestry用来对服务进行配置的方式
对服务进行配置需要用到contribute,然后+serviceId。
看一下代码:
public static void arbitraryMethodName(MappedConfiguration<String,FileServicer> configuration) { configuration.add("doc", new WordFileServicer()); configuration.add("ppt", new PowerPointFileServicer()); }
其中可能最令人不解的就是MappedConfiguration了。
There are three different styles of configurations (with matching contributions):
有三种不同形式的configuration
Tapestry IoC Configuration,布布扣,bubuko.com
标签:style class blog code color strong
原文地址:http://www.cnblogs.com/voctrals/p/3779496.html