/** {@inheritDoc} */ @SuppressWarnings("unchecked") public Object getProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name) throws OgnlException { return factory.getPropertyAccessor((String) name, (T) target).getProperty( context, target, name); }
/** {@inheritDoc} */ @SuppressWarnings("unchecked") public Object getProperty(@SuppressWarnings("rawtypes") Map context, Object target, Object name) throws OgnlException { return propertyAccessor.getProperty(context, nestedObjectExtractor .getNestedObject((T) target), name); }
public Object getProperty(Map context, Object target, Object name) throws OgnlException { ObjectProxy proxy = (ObjectProxy) target; setupContext(context, proxy); return OgnlRuntime.getPropertyAccessor(proxy.getValue().getClass()).getProperty(context, target, name); }
public static final Object getProperty( OgnlContext context, Object source, Object name ) throws OgnlException { PropertyAccessor accessor; if (source == null) { throw new OgnlException("source is null for getProperty(null, \"" + name + "\")"); } if ((accessor = getPropertyAccessor(getTargetClass(source))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(source).getName()); } return accessor.getProperty( context, source, name ); }
public static Object getProperty(OgnlContext context, Object source, Object name) throws OgnlException { PropertyAccessor accessor; if (source == null) { throw new OgnlException("source is null for getProperty(null, \"" + name + "\")"); } if ((accessor = getPropertyAccessor(getTargetClass(source))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(source).getName()); } return accessor.getProperty(context, source, name); }
public static Object getProperty(OgnlContext context, Object source, Object name) throws OgnlException { PropertyAccessor accessor; if (source == null) { throw new OgnlException("source is null for getProperty(null, \"" + name + "\")"); } if ((accessor = getPropertyAccessor(getTargetClass(source))) == null) { throw new OgnlException("No property accessor for " + getTargetClass(source).getName()); } return accessor.getProperty(context, source, name); }
return accessor.getProperty(ogContext,propVal,objects[0]);
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value);
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value);
public Object getProperty(Map context, Object target, Object name) throws OgnlException { String property = name.toString(); RequestContext requestContext = (RequestContext) target; if (property.equals("flowRequestContext")) { return requestContext; } if (property.equals("currentUser")) { return requestContext.getExternalContext().getCurrentUser(); } if (property.equals("resourceBundle")) { return requestContext.getActiveFlow().getApplicationContext(); } if (requestContext.getRequestScope().contains(property)) { return requestContext.getRequestScope().get(property); } else if (requestContext.getFlashScope().contains(property)) { return requestContext.getFlashScope().get(property); } else if (requestContext.inViewState() && requestContext.getViewScope().contains(property)) { return requestContext.getViewScope().get(property); } else if (requestContext.getFlowScope().contains(property)) { return requestContext.getFlowScope().get(property); } else if (requestContext.getConversationScope().contains(property)) { return requestContext.getConversationScope().get(property); } BeanFactory bf = getBeanFactory(requestContext); if (bf.containsBean(property)) { return bf.getBean(property); } return delegate.getProperty(context, target, name); }
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value);
Class prevType = context.getPreviousType(); Object indexVal = p.getProperty(context, target, value);