Cargo

Implement a generic solution for container properties

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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.

Activity

Hide
Vincent Massol added a comment -

Done

Show
Vincent Massol added a comment - Done

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: