Hm, this might require a CDI spec clarification. I don't think it is currently forbidden to use static observer methods on extensions. However, I think it's reasonable not to allow static observers. Also there are some spec requirements which would complicate the implementation for static observer methods - i.e. if a container lifecycle event method is called outside of the observer method invocation an IllegalStateException must be thrown. |