@Override
public <A extends Annotation> A retrieveAnnotation(Class<A> annotationClass, JBossEnterpriseBeanMetaData beanMetaData, ClassLoader classLoader)
{
if(annotationClass == Interceptors.class)
{
InterceptorsImpl interceptors = new InterceptorsImpl();
if(!isMetadataComplete(beanMetaData))
interceptors.add(getBeanClass().getAnnotation(Interceptors.class));
interceptors.add(super.retrieveAnnotation(Interceptors.class, beanMetaData, classLoader));
if(!interceptors.isEmpty())
return annotationClass.cast(interceptors);
}
return super.retrieveAnnotation(annotationClass, beanMetaData, classLoader);
}