Examples of ObjectFactoryException


Examples of org.pentaho.platform.api.engine.ObjectFactoryException

      }
    } catch ( Exception e ) {
      String msg =
        Messages.getInstance()
          .getString( "AbstractSpringPentahoObjectFactory.WARN_FAILED_TO_CREATE_OBJECT", key ); //$NON-NLS-1$
      throw new ObjectFactoryException( msg, e );
    }
    return object;
  }
View Full Code Here

Examples of org.pentaho.platform.api.engine.ObjectFactoryException

      }
    } catch ( Exception e ) {
      String msg =
        Messages.getInstance()
          .getString( "AbstractSpringPentahoObjectFactory.WARN_FAILED_TO_CREATE_OBJECT", key ); //$NON-NLS-1$
      throw new ObjectFactoryException( msg, e );
    }
    return object;
  }
View Full Code Here

Examples of org.pentaho.platform.api.engine.ObjectFactoryException

    } catch ( Throwable t ) {
      String msg =
        Messages.getInstance().getString(
          "AbstractSpringPentahoObjectFactory.WARN_FAILED_TO_RETRIEVE_OBJECT",
          interfaceClass.getSimpleName() ); //$NON-NLS-1$
      throw new ObjectFactoryException( msg, t );
    }

    // Sanity check
    if ( interfaceClass.isAssignableFrom( object.getClass() ) == false ) {
      throw new IllegalStateException( "Object retrived from Spring not expected type: "
View Full Code Here

Examples of org.pentaho.platform.api.engine.ObjectFactoryException

      object = beanFactory.getBean( beanId );
    } catch ( Throwable t ) {
      String msg =
        Messages.getInstance()
          .getString( "AbstractSpringPentahoObjectFactory.WARN_FAILED_TO_RETRIEVE_OBJECT", beanId ); //$NON-NLS-1$
      throw new ObjectFactoryException( msg, t );
    }
    return object;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException
  {
    if (getObjectClass().isAssignableFrom(o.getClass()) == false)
    {
      throw new ObjectFactoryException("Class is not assignable");
    }

    final Shape s = (Shape) o;
    final PathIterator pi = s.getPathIterator(AffineTransform.getTranslateInstance(0, 0));
    if (pi.getWindingRule() == PathIterator.WIND_EVEN_ODD)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

    {
      setParameter("value", "use-script");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

    {
      setParameter("value", BoxSizing.CONTENT_BOX.toString());
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for ElementAlignment");
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

    {
      setParameter("value", "preserve-breaks");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for WhitespaceCollapse");
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

  public void setParameterFromObject(final Object o)
      throws ObjectFactoryException
  {
    if ((o instanceof PathIteratorSegment) == false)
    {
      throw new ObjectFactoryException("The given object is no PathIteratorSegment.");
    }

    final PathIteratorSegment seg = (PathIteratorSegment) o;
    setParameter("segmentType", createSegmentType(seg.getSegmentType()));
    setParameter("x1", new Float(seg.getX1()));
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ObjectFactoryException

    {
      setParameter("value", "auto");
    }
    else
    {
      throw new ObjectFactoryException("Invalid value specified for FontSmooth");
    }
  }
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.