Menu

#18 Adding extends property

open
Pipelines (6)
5
2003-03-01
2003-01-20
No

Here is an idea:
We could add one special property to scanners or
pipeline stages configuration. That property should point
to another component (scanner or pipeline stage) and it
should mean that we want all properties from parent
component to have the same values as properties from
child component.

For example, if we have two scanners that have all
properties the same but they scans different folders and
put their scanned messages into different pipelines we
could make one scanner extend another one scanner (or
even create one abstract scanner with all common
properties). That way we could make our config files
smaller.

Discussion

  • Dejan Krsmanovic

    • labels: --> 496837
    • milestone: --> 273095
     
  • Robert Fuller

    Robert Fuller - 2003-01-29

    Logged In: YES
    user_id=51384

    In an XML configuration file you may be able to do this
    already (ie., write a set of configuration properties once and
    use it several times in the same file) by using external
    entities.

     
  • Dejan Krsmanovic

    Logged In: YES
    user_id=608954

    We should have easer and more general way of doing this, so
    it could be applied on properties files too.

     
  • Robert Fuller

    Robert Fuller - 2003-01-29

    Logged In: YES
    user_id=51384

    How about some kind of PropertySet, which can have an id and a set
    of properties, and which can be subsequently referenced from other
    points in the configuration?

     
  • Dejan Krsmanovic

    Logged In: YES
    user_id=608954

    OK but that is something very similiar to my original idea:
    Having an property that would point on another component
    and have all its configuration options set. That another
    component (scanner, pipeline stage) could be abstract in
    case it is something like PropertySet you suggested, or just
    another (non abstract) component.

    Components should be in parent-child relationship, and child
    component could redefine value of some option in parent
    component.

     
  • bruce mcdonald

    bruce mcdonald - 2003-03-01
    • labels: 496837 --> Pipelines
    • milestone: 273095 --> Next_Release_(after_1.0)
    • assigned_to: nobody --> dejank
     
  • bruce mcdonald

    bruce mcdonald - 2003-03-01

    Logged In: YES
    user_id=547388

    Good idea - lets keep it for the 1.x series. There are going to be lots of time
    to do this. The build was the big thing holding up the 1.0 release.

     

Log in to post a comment.