Optimized Initializers-Handling

Description

Initializers should be able to access PDP object
it might be helpful if they had access to the PDP object which they were initializing. I could imagine a developer subclassing SimplePDP and SimplePDPFactory to add additional functionality and wanting to tweak that functionality with the initializers.

-> http://forum.herasaf.org/index.php/topic,109.0.html

Default Initializers should directly be accessible
A possibility should be provided so that a single default initializer can be exchanged or accessed (in it must be reconfigured).
Then an addAdditionalInitializers-method should also be provided for custom initializers.

Environment

None

Activity

Show:
Florian Huonder
June 6, 2010, 8:08 AM
Edited

Here I think there should be two interfaces

A Initializer interface (the current one) that has only the run() method and an other interface, extending the current interface where e.g. the run method looks like run(PDP pdp). The factory then would be responsible for passing the right PDP object to the factory.

Florian Huonder
June 6, 2010, 8:10 AM

Hmm maybe that won't work because in the extended class the run() method would still be available.
I think it must be two different interfaces.

Assignee

Unassigned

Reporter

ChadC

Labels

None

Time tracking

0m

Time remaining

1h

Components

Fix versions

Priority

Major
Configure