We're updating the issue view to help you get more done. 

Implement a generic solution for container properties

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.

Status

Assignee

Vincent Massol

Reporter

Vincent Massol

Fix versions

Priority

Major