Examples of PropertyAccessor


Examples of org.springframework.beans.PropertyAccessor

   */
  public static Resource initResource(Resource aResource, ApplicationContext aApplicationContext) {
    AutowireCapableBeanFactory beanFactory = aApplicationContext.getAutowireCapableBeanFactory();

    if (aResource instanceof PrimitiveAnalysisEngine_impl) {
      PropertyAccessor pa = PropertyAccessorFactory.forDirectFieldAccess(aResource);

      // Access the actual AnalysisComponent and initialize it
      AnalysisComponent analysisComponent = (AnalysisComponent) pa
              .getPropertyValue("mAnalysisComponent");
      initializeBean(beanFactory, analysisComponent, aResource.getMetaData().getName());
      pa.setPropertyValue("mAnalysisComponent", analysisComponent);

      return aResource;
    } else {
      return (Resource) beanFactory.initializeBean(aResource, aResource.getMetaData().getName());
    }
View Full Code Here

Examples of org.springframework.expression.PropertyAccessor

    if (targetObject == null && this.nullSafe) {
      return TypedValue.NULL;
    }

    PropertyAccessor accessorToUse = this.cachedReadAccessor;
    if (accessorToUse != null) {
      try {
        return accessorToUse.read(eContext, contextObject.getValue(), name);
      }
      catch (AccessException ae) {
        // this is OK - it may have gone stale due to a class change,
        // let's try to get a new one and call it before giving up
        this.cachedReadAccessor = null;
View Full Code Here

Examples of org.springframework.expression.PropertyAccessor

   
    if (contextObject.getValue() == null && nullSafe) {
      return;
    }

    PropertyAccessor accessorToUse = this.cachedWriteAccessor;
    if (accessorToUse != null) {
      try {
        accessorToUse.write(eContext, contextObject.getValue(), name, newValue);
        return;
      }
      catch (AccessException ae) {
        // this is OK - it may have gone stale due to a class change,
        // let's try to get a new one and call it before giving up
View Full Code Here

Examples of org.springframework.expression.PropertyAccessor

    if (targetObject == null && this.nullSafe) {
      return TypedValue.NULL;
    }

    PropertyAccessor accessorToUse = this.cachedReadAccessor;
    if (accessorToUse != null) {
      try {
        return accessorToUse.read(state.getEvaluationContext(), contextObject.getValue(), name);
      }
      catch (AccessException ae) {
        // this is OK - it may have gone stale due to a class change,
        // let's try to get a new one and call it before giving up
        this.cachedReadAccessor = null;
View Full Code Here

Examples of org.springframework.expression.PropertyAccessor

   
    if (contextObject.getValue() == null && nullSafe) {
      return;
    }

    PropertyAccessor accessorToUse = this.cachedWriteAccessor;
    if (accessorToUse != null) {
      try {       
        accessorToUse.write(state.getEvaluationContext(), contextObject.getValue(), name, newValue);
        return;
      }
      catch (AccessException ae) {
        // this is OK - it may have gone stale due to a class change,
        // let's try to get a new one and call it before giving up
View Full Code Here

Examples of org.springframework.expression.PropertyAccessor

    if (targetObject == null && nullSafe) {
      return TypedValue.NULL;
    }

    PropertyAccessor accessorToUse = this.cachedReadAccessor;
    if (accessorToUse != null) {
      try {
        return accessorToUse.read(state.getEvaluationContext(), contextObject.getValue(), name);
      }
      catch (AccessException ae) {
        // this is OK - it may have gone stale due to a class change,
        // let's try to get a new one and call it before giving up
        this.cachedReadAccessor = null;
View Full Code Here

Examples of org.springframework.expression.PropertyAccessor

   
    if (contextObject.getValue() == null && nullSafe) {
      return;
    }

    PropertyAccessor accessorToUse = this.cachedWriteAccessor;
    if (accessorToUse != null) {
      try {       
        accessorToUse.write(state.getEvaluationContext(), contextObject.getValue(), name, newValue);
        return;
      }
      catch (AccessException ae) {
        // this is OK - it may have gone stale due to a class change,
        // let's try to get a new one and call it before giving up
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.