Package org.infoglue.cms.providers

Examples of org.infoglue.cms.providers.ComponentModel.prepare()


      if(componentModelClassName != null && !componentModelClassName.equals(""))
      {
        try
        {
          ComponentModel componentModel = (ComponentModel)loadExtensionClass(componentModelClassName).newInstance();;
          componentModel.prepare(template, this.getController(), this.getController().getComponentLogic().getInfoGlueComponent().getModel());
        }
        catch (Exception e)
        {
          logger.error("The component '" + this.getController().getComponentLogic().getInfoGlueComponent().getName() + "' stated that class: " + componentModelClassName + " should be used as model. An exception was thrown when it was invoked: " + e.getMessage(), e)
        }
View Full Code Here


              if(isOk)
              {
                if(logger.isDebugEnabled())
                  logger.debug("Calling prepare on '" + componentModelClassName + "'");
                ComponentModel componentModel = (ComponentModel)c.newInstance();
                componentModel.prepare(componentString, templateController, component.getModel());
              }
            }
            catch (Exception e)
            {
              logger.error("Failed loading custom class from asset JAR. Trying normal class loader. Error:" + e.getMessage());
View Full Code Here

            }
            catch (Exception e)
            {
              logger.error("Failed loading custom class from asset JAR. Trying normal class loader. Error:" + e.getMessage());
              ComponentModel componentModel = (ComponentModel)Thread.currentThread().getContextClassLoader().loadClass(componentModelClassName).newInstance();
              componentModel.prepare(componentString, templateController, component.getModel());
            }
          }
          else
          {
            ComponentModel componentModel = (ComponentModel)Thread.currentThread().getContextClassLoader().loadClass(componentModelClassName).newInstance();
View Full Code Here

            }
          }
          else
          {
            ComponentModel componentModel = (ComponentModel)Thread.currentThread().getContextClassLoader().loadClass(componentModelClassName).newInstance();
            componentModel.prepare(componentString, templateController, component.getModel());
          }
          if(logger.isDebugEnabled())
            t.printElapsedTime("Invoking custome class took");
        }
        catch (Exception e)
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.