WikiEngine#initComponent() now asks the mappedClass if is Initializable instead of asking the requestedClass on classmappings.xml
This allows to decouple Initializable from the mapped managers, as it should only matter if their implementations are Initializable in order to init them
@@ -404,7 +404,7 @@ public class WikiEngine implements Engine {
component = ClassUtil.getMappedObject( componentInitClass, initArgs );
}
managers.put( componentClass, component );
- if( Initializable.class.isAssignableFrom( componentClass ) ) {
+ if( Initializable.class.isAssignableFrom( component.getClass() ) ) {
( ( Initializable )component ).initialize( this, m_properties );
}
}
