Details
-
Type:
Task
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.0-M1
-
Fix Version/s: Tech. Debt
-
Component/s: Core: Configuration, Core: Routing / Filters
-
Labels:
-
User impact:Low
-
Effort points:0.5
-
Similar Issues:None
Description
The initialise method of AbstractEndpointSecurityFilter is called after the object is created and populated via Spring, but before it receives an endpoint (which is set from within the endpoint, when the filter is injected into the endpoint, which occurs after this object is created and initialised).
This means that when initialise() is called, the endpoint is not known. So the endpoint type cannot be checked. So the initialisation code which requires the endpoint type must be postponed until after the endpoint is set. At the moment we use lazy initialisation - the method lazyInit() is not called until the filter is used (by which point the endpoint should be set). Another alternative would be to initialise when the endpoint is set.
Anyway, Ross asked for this to be noted in an issue here for later consideration.
Issue Links
- is duplicated by
-
MULE-1922
Improve Initialisation in 2.0
-
Andrew P mentions that there is a "model complete" event of some kind that is available to Mule components. This would probably be the best way to do initialisation like this.