Example.cfc:
------------
component accessors=true {
/**
* Read only property
* @setter false
**/
property name="ReadOnly" type="boolean" default=true;
/**
* Write only property (cant think of a good use-case for a write-only property, but its still an option...)
* @getter false
**/
property name="WriteOnly" type="any";
}
component accessors=true {
/**
* Read only property
**/
property name="ReadOnly" type="boolean" default=true;
/**
* Write only property
**/
property name="WriteOnly" type="any";
private function setReadOnly() {}
private function getWriteOnly() {}
}
You can use the getter/setter attributes of cfproperty to do the same thing. e.g.
property name='username' getter='true' setter='false';
Chris
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/68148936-907d-49fb-b78a-2b96c22e5b22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.