public <T> Set<ObserverMethod<?>> defineObserverMethods(InjectionTargetBean<T> component, Class<T> clazz)
{
Asserts.assertNotNull(component, "component parameter can not be null");
Asserts.nullCheckForClass(clazz);
NotificationManager manager = webBeansContext.getBeanManagerImpl().getNotificationManager();
Method[] candidateMethods = AnnotationUtil.getMethodsWithParameterAnnotation(clazz, Observes.class);
// From normal
createObserverMethods(component, clazz, candidateMethods);
return manager.addObservableComponentMethods(component);
}