Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getAnnotation (0.23 sec)

  1. src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java

         */
        @Hoge(bbb = "3")
        @Test
        public void testGetProperties() throws Exception {
            final Method m = ClassUtil.getMethod(getClass(), "testGetProperties");
            final Annotation anno = m.getAnnotation(Hoge.class);
            final Map<String, Object> props = AnnotationUtil.getProperties(anno);
            assertThat((String) props.get("aaa"), is("123"));
            assertThat((String) props.get("bbb"), is("3"));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

                        return;
                    }
                    final Method executeMethod = resource.getExecuteMethod();
                    final Secured secured = executeMethod.getAnnotation(Secured.class);
                    if (secured != null && user.hasRoles(secured.value())) {
                        return;
                    }
                    throw new UserRoleLoginException(RootAction.class);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.8K bytes
    - Viewed (1)
Back to top