Here's the API proposal:
Container.setProperty(String propertyName, String value);
Ex: container.setProperty(ServletPropertySet.PORT, "8080");
There would be several property sets interfaces regroupring known properties: GeneralPropertySet, ServletPropertySet, EjbPropertySet, J2EEPropertySet, etc. We'll discover them as we implement the different properties.
Note: I have almost finished implementing this already, removing the existing Container.setPort() by this mechanism.