Details
-
Type:
Task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Here's the API proposal:
From Java:
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.
From Ant:
<cargo-xxx [...]
<property name="cargo.servlet.port", "8080"/>
[...]
We'll need to map the XXXPropertySet interfaces to a flat property name space. Hence the proposal to use: cargo.[propertysetprefix].[property name] (e.g. "cargo.servlet.port", etc).
Note: I have almost finished implementing this already, removing the existing Container.setPort() by this mechanism.
Done