6
我开始使用ColdFusion 9中添加的新cfproperty东西,但我想要使用的主要部分现在在ColdFusion 10中似乎不起作用。我创建了以下CFC:未为我创建的隐式获取者和设置器
component displayName="Sources" {
/**
* @getter true
* @setter true
* @type numeric
* @default 1
**/
property sourceid;
/**
* @getter true
* @setter true
* @type numeric
* @default 1
**/
property sourcegroup;
public any function init() {
This.domainRegex = '\/\/(www\.)?(([A-Za-z0-9\-_]+\.?)+)';
return this;
}
}
当我甩了CFC我可以看到属性的元数据,但没有为他们创造的方法和我不能叫getSourceId()
或getSourceGroup()
IT是访问者的财产。 – 2012-08-03 12:56:35