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