Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
pre-1.0
-
None
-
None
-
Linux, Eclipse 3.1.1, Java 1.5_05.
Description
I have added my own CustomPartiton which extends AbstractContextPartition. I have some configuration settings specific to my partition, so I have also created a new ContextPartitionConfiguration which extends MutableContextPartitionConfiguration.
Unfortunately, in my CustomPartition.doInit() method I attempt to test if the configuration that is returned from AbstractContextPartition.getConfiguration() is an instance of my new configuration, and discover that it is not.
The implementation within DefaultContextPartitionNexus.addContextPartition() creates a new MutableContextPartitionConfiguration and copies the known values from the config that was passed into that method, thus by the time my code is called it is never an instance of my new configuration class.