/** * Helper method to support TemplateHashModelEx. Returns the Set of * Strings which are available via the TemplateHashModel * interface. Subclasses that override <tt>invokeGenericGet</tt> to * provide additional hash keys should also override this method. */ protected Set/*<Object>*/ keySet() { return wrapper.getClassIntrospector().keySet(object.getClass()); }
public int size() { return wrapper.getClassIntrospector().keyCount(object.getClass()); }
/** @since 2.3.21 */ BeanModel(Object object, BeansWrapper wrapper, boolean inrospectNow) { this.object = object; this.wrapper = wrapper; if (inrospectNow && object != null) { // [2.4]: Could this be removed? wrapper.getClassIntrospector().get(object.getClass()); } }
/** * Whether the model has a plain get(String) or get(Object) method */ protected boolean hasPlainGetMethod() { return wrapper.getClassIntrospector().get(object.getClass()).get(ClassIntrospector.GENERIC_GET_KEY) != null; }
classIntrospector = wrapper.getClassIntrospector(); classIntrospectorClearingCounter = classIntrospector.getClearingCounter(); synchronized (sharedLock) { if (classIntrospector == wrapper.getClassIntrospector() && classIntrospectorClearingCounter == classIntrospector.getClearingCounter()) { cache.put(key, model);
int mod = method.getModifiers(); if (Modifier.isPublic(mod) && Modifier.isStatic(mod) && wrapper.getClassIntrospector().isAllowedToExpose(method)) { String name = method.getName(); Object obj = map.get(name);
throws TemplateModelException { Class<?> clazz = object.getClass(); Map<Object, Object> classInfo = wrapper.getClassIntrospector().get(clazz); TemplateModel retval = null;
/** @since 2.3.21 */ BeanModel(Object object, BeansWrapper wrapper, boolean inrospectNow) { this.object = object; this.wrapper = wrapper; if (inrospectNow && object != null) { // [2.4]: Could this be removed? wrapper.getClassIntrospector().get(object.getClass()); } }
/** * Whether the model has a plain get(String) or get(Object) method */ protected boolean hasPlainGetMethod() { return wrapper.getClassIntrospector().get(object.getClass()).get(ClassIntrospector.GENERIC_GET_KEY) != null; }
/** @since 2.3.21 */ BeanModel(Object object, BeansWrapper wrapper, boolean inrospectNow) { this.object = object; this.wrapper = wrapper; if (inrospectNow && object != null) { // [2.4]: Could this be removed? wrapper.getClassIntrospector().get(object.getClass()); } }
/** * Helper method to support TemplateHashModelEx. Returns the Set of * Strings which are available via the TemplateHashModel * interface. Subclasses that override <tt>invokeGenericGet</tt> to * provide additional hash keys should also override this method. */ protected Set/*<Object>*/ keySet() { return wrapper.getClassIntrospector().keySet(object.getClass()); }
/** * Whether the model has a plain get(String) or get(Object) method */ protected boolean hasPlainGetMethod() { return wrapper.getClassIntrospector().get(object.getClass()).get(ClassIntrospector.GENERIC_GET_KEY) != null; }
/** * Helper method to support TemplateHashModelEx. Returns the Set of * Strings which are available via the TemplateHashModel * interface. Subclasses that override <tt>invokeGenericGet</tt> to * provide additional hash keys should also override this method. */ protected Set/*<Object>*/ keySet() { return wrapper.getClassIntrospector().keySet(object.getClass()); }
public int size() { return wrapper.getClassIntrospector().keyCount(object.getClass()); }
public int size() { return wrapper.getClassIntrospector().keyCount(object.getClass()); }
classIntrospector = wrapper.getClassIntrospector(); classIntrospectorClearingCounter = classIntrospector.getClearingCounter(); synchronized (sharedLock) { if (classIntrospector == wrapper.getClassIntrospector() && classIntrospectorClearingCounter == classIntrospector.getClearingCounter()) { cache.put(key, model);
classIntrospector = wrapper.getClassIntrospector(); classIntrospectorClearingCounter = classIntrospector.getClearingCounter(); synchronized (sharedLock) { if (classIntrospector == wrapper.getClassIntrospector() && classIntrospectorClearingCounter == classIntrospector.getClearingCounter()) { cache.put(key, model);
int mod = method.getModifiers(); if (Modifier.isPublic(mod) && Modifier.isStatic(mod) && wrapper.getClassIntrospector().isAllowedToExpose(method)) { String name = method.getName(); Object obj = map.get(name);
int mod = method.getModifiers(); if (Modifier.isPublic(mod) && Modifier.isStatic(mod) && wrapper.getClassIntrospector().isAllowedToExpose(method)) { String name = method.getName(); Object obj = map.get(name);
throws TemplateModelException { Class<?> clazz = object.getClass(); Map<Object, Object> classInfo = wrapper.getClassIntrospector().get(clazz); TemplateModel retval = null;