0 Replies Latest reply on Oct 27, 2013 11:22 AM by Aegis Kleais

    Can implicit setters be created as private access instead of public?

    Aegis Kleais Level 3

      I love CF10's auto generation of accessors, but in the event I wanted to create a Read-Only bean, I'm noticing that when I dump the getMetaData() on the object, that the setProperty() methods are set to Public Access.

       

      Does this mean that in order to have Private Access setters I have to tell the component: setter="false" on each property and then manually create a setProperty() method?

       

      I'd like to be able to just say: setName( 'value' ) in my code inside the CFC, but not have objectName.setName( 'value' ) accessible from other parts of the application.