You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently [PreDestroy] based on PreDestroyProcessor's tearDownMetadataTags() is called after unwireing a bean (e.g. presentation model) from a view base on InjectProcessor's tearDownBean() ( check: BeanFactory -> tearDownBean() ). Because all processors in Swiz.as are ordered by its priority. But in this case its not possible to dispatch a BeanEvent.TEAR_DOWN_BEAN including a reference to the bean (e.g. presentation model), because it is already unwired and null.
Changing the priority of PreDestroyProcessor to less than 200 (ProcessorPriority.INJECT) will fix it.
-Jens
The text was updated successfully, but these errors were encountered:
Priority of PreDestroyProcessor has not to be 800 (ProcessorPriority.PRE_DESTROY), but less than 200 (ProcessorPriority.INJECT).
Background:
To remove property bindings based on [Inject("domainModel.anyProperty", bind="true")] of an unused bean, e.g. a presentation model, you have to dispatch BeanEvent.TEAR_DOWN_BEAN "by hand" using a [PostConstruct] declared method in a view. Check out the discussion here, too: http://groups.google.com/group/swiz-framework/browse_thread/thread/147725636697fd6c/47b4b47b4c4e2e5a#47b4b47b4c4e2e5a
Currently [PreDestroy] based on PreDestroyProcessor's tearDownMetadataTags() is called after unwireing a bean (e.g. presentation model) from a view base on InjectProcessor's tearDownBean() ( check: BeanFactory -> tearDownBean() ). Because all processors in Swiz.as are ordered by its priority. But in this case its not possible to dispatch a BeanEvent.TEAR_DOWN_BEAN including a reference to the bean (e.g. presentation model), because it is already unwired and null.
Changing the priority of PreDestroyProcessor to less than 200 (ProcessorPriority.INJECT) will fix it.
-Jens
The text was updated successfully, but these errors were encountered: