/**
* {@inheritDoc}
*/
public Set<ObserverMethod<?>> defineObserverMethods()
{
AbstractInjectionTargetBean bean = getBean();
if(isDefaultMetaDataProvider())
{
return bean.getWebBeansContext().getDefinitionUtil().defineObserverMethods(bean, bean.getReturnType());
}
else
{
return bean.getWebBeansContext().getAnnotatedTypeUtil().defineObserverMethods(bean, getAnnotatedType());
}
}