双射(bijection)
双射(bijection,即 bidirectional injection 的简称)。当注出(outject)属性数据时,视图可以通过名称找到它。在 postback 或者组件初始化时,数据被注入(inject)到一个组件中。后者是著名的控制反转(inversion of control,IOC)模式的一种实现,可用于连接委托对象。
传统 IOC 与 双射之间的主要不同点在于,双射使长期作用域中的组件可以引用短期作用域中的组件。可以进行这种连接是因为双射在调用组件时(而不是启动容器时)解析依赖项。双射是有状态组件开发的基础。
@Name("addressManager")
public class AddressManagerBean{
@DataModel
private List<Address> addresses;
@DataModelSelection
@Out(required=false)
private Address selectedAddress;
@Factory(value="addresses")
public void loadAddress(){
//logic to load addresses into this.addresses
}
public String showDetail(){
//no work needs to be done to prepare the selected address
return "/address.jspx";
}
public String list(){
return "/addresses.jspx";
}
}
--------------------------------
@Name("addressManager")
public class AddresManagerBean{
@In("#{addressService}")
private AddressService addressService;
}
分享到:
相关推荐
双射 Bijection是一种可逆函数,可在两种类型之间来回转换,合约规定,通过Bijection的往返行程将带回原始对象。 而且,逆具有相同的性质。 有关更多信息,请参见。例子: > . / sbt bijection - core / ...
bijection 是一个双向可逆函数,可以在两种类型中转换,在 bijection 中往返的协议将带回给原始的对象。 标签:bijection
bijection-json_2.12-0.9.6.jar
双射 通过双射函数f将输入对象x映射到输出对象y ,即f: X -> Y 安装 $ npm install bijection --save 用法 var Bijection = require ( 'bijection' ) ; var LegacyAccount = { identity : 'crmacct' , ...
bildungsroman.zip,scala的com.timgroup.bildungsromanarrative
Bijection_Pairing_N_N2(index_In,flag_Pair) 在 [0,...,K] 和 N^2 的一些持续增长的子集之间提供三种不同的显式双射(根据三种模式:康托或三角形、优雅或方形、二次幂- Odd 或 POTO 用于 2-adic 整数分解)。...
bijection.zip,类型之间的双射核可逆转换
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
问题: 我们可以观察到,当 A 的维度是 2 的倍数时,像素信息错位(左上角)或丢失(右下角) 数字: 第一行 L-to-R:显示原始图像 GREEN,然后是 MATLAB 的氡变换(又名正弦图),然后是 MATLAB 的逆氡变换 REED...
kryo使用相关的jar包 For java and scala,包括: - kryo核心包,以及其相关依赖的lib - twitter/chill 包: chill_2.11-...- twitter/bijection包: bijection-core_2.11-0.9.1.jar, chill-bijection_2.11-0.9.1.jar
The assignment is a bijection (to each character exactly one character is assigned -- not neccessary different). The director is afraid of disclosing the substitution table and therefore he changes ...
Research of the shortest length of confidence interval for the ratio of variance of two independent normal distribution . ,EL KHOUMRANI Abdelali,WANG Zhijian,In general, for a given confidence ...