Manage vector<OutputPort> with size from property

Dear all,

I'm using a vector<OutputPort> to have dinamically created ports without re-compiling my component. I'd like to specify the size of my std::vector using properties but...

Deployment state machine creates Ports and Connections _before_ it actually update properties (from Deployment Component Manual). This is a problem because I'm using vector in order to avoid re-compiling and I really don't like to recompile only to manually update a property...

There is a way to to this?

Thank you,