Java Code Examples for org.springframework.core.annotation.AnnotationUtils#getRepeatableAnnotations()
The following examples show how to use
org.springframework.core.annotation.AnnotationUtils#getRepeatableAnnotations() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlScriptsTestExecutionListener.java From spring4-understanding with Apache License 2.0 | 6 votes |
/** * Execute SQL scripts configured via {@link Sql @Sql} for the supplied * {@link TestContext} and {@link ExecutionPhase}. */ private void executeSqlScripts(TestContext testContext, ExecutionPhase executionPhase) throws Exception { boolean classLevel = false; Set<Sql> sqlAnnotations = AnnotationUtils.getRepeatableAnnotations(testContext.getTestMethod(), Sql.class, SqlGroup.class); if (sqlAnnotations.isEmpty()) { sqlAnnotations = AnnotationUtils.getRepeatableAnnotations(testContext.getTestClass(), Sql.class, SqlGroup.class); if (!sqlAnnotations.isEmpty()) { classLevel = true; } } for (Sql sql : sqlAnnotations) { executeSqlScripts(sql, executionPhase, testContext, classLevel); } }
Example 2
Source File: AnnotationJmxAttributeSource.java From java-technology-stack with MIT License | 5 votes |
@Override public org.springframework.jmx.export.metadata.ManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException { Set<ManagedOperationParameter> anns = AnnotationUtils.getRepeatableAnnotations( method, ManagedOperationParameter.class, ManagedOperationParameters.class); return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedOperationParameter.class); }
Example 3
Source File: AnnotationJmxAttributeSource.java From java-technology-stack with MIT License | 5 votes |
@Override public org.springframework.jmx.export.metadata.ManagedNotification[] getManagedNotifications(Class<?> clazz) throws InvalidMetadataException { Set<ManagedNotification> anns = AnnotationUtils.getRepeatableAnnotations( clazz, ManagedNotification.class, ManagedNotifications.class); return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedNotification.class); }
Example 4
Source File: AnnotationJmxAttributeSource.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public org.springframework.jmx.export.metadata.ManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException { Set<ManagedOperationParameter> anns = AnnotationUtils.getRepeatableAnnotations( method, ManagedOperationParameter.class, ManagedOperationParameters.class); return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedOperationParameter.class); }
Example 5
Source File: AnnotationJmxAttributeSource.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public org.springframework.jmx.export.metadata.ManagedNotification[] getManagedNotifications(Class<?> clazz) throws InvalidMetadataException { Set<ManagedNotification> anns = AnnotationUtils.getRepeatableAnnotations( clazz, ManagedNotification.class, ManagedNotifications.class); return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedNotification.class); }
Example 6
Source File: AnnotationJmxAttributeSource.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public org.springframework.jmx.export.metadata.ManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException { Set<ManagedOperationParameter> anns = AnnotationUtils.getRepeatableAnnotations( method, ManagedOperationParameter.class, ManagedOperationParameters.class); return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedOperationParameter.class); }
Example 7
Source File: AnnotationJmxAttributeSource.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public org.springframework.jmx.export.metadata.ManagedNotification[] getManagedNotifications(Class<?> clazz) throws InvalidMetadataException { Set<ManagedNotification> anns = AnnotationUtils.getRepeatableAnnotations( clazz, ManagedNotification.class, ManagedNotifications.class); return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedNotification.class); }