Sep 27th, 2010, 06:53 PM
Useless use of generics in OsgiBundleApplicationContextListener?
Instances of this class can be registered to receive OsgiBundleApplicationContextEvents (different events are represented by different subclasses). Somewhere between Spring DM 1.2 and 2.0 the OsgiBundleApplicationContextListener class appears to have been genericized (OsgiBundleApplicationContextListener<E extends OsgiBundleApplicationContextEvent>) -- but unless there is a way to receive only specific kinds of events, that doesn't seem all that useful (i.e. guaranteed to end with a ClassCastException)? Am I missing something?