Searched refs:annotated (Results 1 - 4 of 4) sorted by relevance

/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/admin/
H A DCommandModel.java135 * Get the Param name. First it checks if the annotated Param
141 * @param annotated annotated field or method
144 public static String getParamName(Param param, AnnotatedElement annotated) { argument
147 if (annotated instanceof Field) {
148 name = ((Field) annotated).getName();
150 if (annotated instanceof Method) {
151 name = ((Method) annotated).getName().substring(3);
/glassfish-3.1.2/admin/config-api/src/main/java/org/glassfish/config/support/
H A DGenericCrudCommand.java142 // Make sure that this method is annotated with an annotation
143 // that is annotated with InhabitantAnnotation (such as @Create).
145 // in case there is a like-named method that is not annotated.
224 public <V> V getValue(Object component, Inhabitant<?> onBehalfOf, AnnotatedElement annotated, Type genericType, Class<V> type) throws ComponentException {
228 if (annotated instanceof Method) {
229 values = (List<ConfigBeanProxy>) ((Method) annotated).invoke(component);
230 } else if (annotated instanceof Field) {
231 values = (List<ConfigBeanProxy>) ((Field) annotated).get(component);
235 "Invalid annotated type {0} passed to InjectionResolver:getValue()",
236 annotated
[all...]
/glassfish-3.1.2/admin/jmx-remote/server/src/main/java/com/sun/enterprise/admin/jmx/remote/server/servlet/
H A DJMXHTTPAdapter.java309 private void addParamUsage(ActionReport report, LocalStringManagerImpl localStrings, String i18nKey, AnnotatedElement annotated) { argument
311 Param param = annotated.getAnnotation(Param.class);
314 String paramName = getParamName(param, annotated);
315 report.getTopMessagePart().addProperty(paramName, getParamDescription(localStrings, i18nKey, paramName, annotated));
319 private String getParamDescription(LocalStringManagerImpl localStrings, String i18nKey, String paramName, AnnotatedElement annotated) { argument
321 I18n i18n = annotated.getAnnotation(I18n.class);
334 private String getParamName(Param param, AnnotatedElement annotated) { argument
336 if (annotated instanceof Field) {
337 return ((Field) annotated).getName();
339 if (annotated instanceo
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/common/util/admin/
H A DMapInjectionResolver.java204 * @param param from the annotated Param
205 * @param target annotated element
245 * annotated Param declaration. For example:
253 * @param annotated annotated element
254 * @return the annotated Field value
258 final AnnotatedElement annotated) {
260 if (annotated instanceof Field) {
261 Field field = (Field)annotated;
263 return ((Field) annotated)
257 getParamField(final Object component, final AnnotatedElement annotated) argument
[all...]

Completed in 19 milliseconds