/** * This is called by getTypeDependencies(). * @return an array of all ejb and web types annotation */ protected Class<? extends Annotation>[] getEjbAndWebAnnotationTypes() { Class<? extends Annotation>[] weTypes = null; Class<? extends Annotation>[] ejbTypes = getEjbAnnotationTypes(); Class<? extends Annotation>[] webTypes = getWebAnnotationTypes(); if (ejbTypes.length > 0) { weTypes = new Class[ejbTypes.length + webTypes.length]; System.arraycopy(ejbTypes, 0, weTypes, 0, ejbTypes.length); System.arraycopy(webTypes, 0, weTypes, ejbTypes.length, webTypes.length); } else { weTypes = webTypes; } return weTypes; }