}
if(listenerForList == null) //not in production or the class hasn't been inspected yet
{
ListenerFor listener = inspectedClass.getAnnotation(ListenerFor.class);
ListenersFor listeners = inspectedClass.getAnnotation(ListenersFor.class);
if(listener != null || listeners != null)
{
//listeners were found using one or both annotations, create and build a new list
listenerForList = new ArrayList<ListenerFor>();
if(listener != null)
{
listenerForList.add(listener);
}
if(listeners != null)
{
listenerForList.addAll(Arrays.asList(listeners.value()));
}
}
}
if (listenerForList != null) //listeners were found through inspection or from cache, handle them