Examples of BeanHandler


Examples of org.apache.commons.dbutils.handlers.BeanHandler

  {
    try
    {
      return (T) _g_runner.query(getConnection(), sql,
          _IsPrimitive(beanClass) ? _g_scaleHandler
              : new BeanHandler(beanClass), params);
    }
    catch (SQLException e)
    {
      throw new DBException(e);
    }
View Full Code Here

Examples of org.apache.commons.dbutils.handlers.BeanHandler

    *
    * @return Object
    */
   public Object getObject(final String sql, final Class clazz) {
      try{
         final ResultSetHandler bean = new BeanHandler(clazz);
         return runner.query(conn, sql, null, bean);
      }catch (final SQLException e){
         if(GlobalSettings.logActive)
            new LogEngine().logMessage(e.getStackTrace().toString(), GlobalSettings.logPath, "ERROR");
         throw new RuntimeException(e);
View Full Code Here

Examples of org.jboss.dashboard.ui.components.BeanHandler

        BeanDispatcher requestHandler = CDIBeanLocator.getBeanByType(BeanDispatcher.class);
        CommandResponse factoryResponse = requestHandler.handleRequest(request);
        String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_ACTION);
        String beanName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
        if (action != null) {
            BeanHandler handler = (BeanHandler) CDIBeanLocator.getBeanByNameOrType(beanName);
            if (handler != null) action = handler.getActionForShortcut(action);
            String methodName = getMethodName(action);
            Class[] params = {Panel.class, CommandRequest.class};
            Object[] args = {panel, request};
            Class cmdClass = this.getClass();
            Method method;
View Full Code Here

Examples of org.jboss.dashboard.ui.components.BeanHandler

        BeanDispatcher requestHandler = CDIBeanLocator.getBeanByType(BeanDispatcher.class);
        CommandResponse factoryResponse = requestHandler.handleRequest(request);
        String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_ACTION);
        String beanName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
        if (action != null) {
            BeanHandler handler = (BeanHandler) CDIBeanLocator.getBeanByNameOrType(beanName);
            if (handler != null) action = handler.getActionForShortcut(action);
            String methodName = getMethodName(action);
            Class[] params = {Panel.class, CommandRequest.class};
            Object[] args = {panel, request};
            Class cmdClass = this.getClass();
            Method method;
View Full Code Here

Examples of org.jboss.dashboard.ui.components.BeanHandler

        BeanDispatcher requestHandler = CDIBeanLocator.getBeanByType(BeanDispatcher.class);
        CommandResponse factoryResponse = requestHandler.handleRequest(request);
        String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_ACTION);
        String beanName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
        if (action != null) {
            BeanHandler handler = (BeanHandler) CDIBeanLocator.getBeanByNameOrType(beanName);
            if (handler != null) action = handler.getActionForShortcut(action);
            String methodName = getMethodName(action);
            Class[] params = {Panel.class, CommandRequest.class};
            Object[] args = {panel, request};
            Class cmdClass = this.getClass();
            Method method;
View Full Code Here

Examples of org.jboss.dashboard.ui.components.BeanHandler

        BeanDispatcher requestHandler = CDIBeanLocator.getBeanByType(BeanDispatcher.class);
        CommandResponse factoryResponse = requestHandler.handleRequest(request);
        String action = request.getRequestObject().getParameter(FactoryURL.PARAMETER_ACTION);
        String beanName = request.getRequestObject().getParameter(FactoryURL.PARAMETER_BEAN);
        if (action != null) {
            BeanHandler handler = (BeanHandler) CDIBeanLocator.getBeanByNameOrType(beanName);
            if (handler != null) action = handler.getActionForShortcut(action);
            String methodName = getMethodName(action);
            Class[] params = {Panel.class, CommandRequest.class};
            Object[] args = {panel, request};
            Class cmdClass = this.getClass();
            Method method;
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

         factory = Config.findMethodInfo(factoryClassInfo, factoryMethod, null, true, true);

      // Create the handler
      BeanInfo beanInfo = JBossXBBuilder.configuration.getBeanInfo(typeInfo);
      BeanAdapterFactory beanAdapterFactory = createAdapterFactory(beanAdapterBuilderClass, beanInfo, factory);
      BeanHandler handler = new BeanHandler(beanInfo.getName(), beanAdapterFactory);
      typeBinding.setHandler(handler);
      if (trace)
         log.trace("Created BeanHandler for type=" + beanInfo.getName() + " factory=" + factory);

      // Look through the properties
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

               propertyGroup.setSkip(Boolean.FALSE);

               // handler for the model group members
               BeanInfo propBeanInfo = JBossXBBuilder.configuration.getBeanInfo(propClassInfo);
               BeanAdapterFactory propBeanAdapterFactory = createAdapterFactory(DefaultBeanAdapterBuilder.class, propBeanInfo, null);
               BeanHandler propHandler = new BeanHandler(propBeanInfo.getName(), propBeanAdapterFactory);
               propertyGroup.setHandler(propHandler);

               String[] memberOrder = xmlModelGroup.propOrder();
               if (memberOrder.length == 0 || memberOrder[0].length() == 0)
               {
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

         // entry handler
         BeanAdapterFactory entryAdapterFactory = null;
         BeanInfo entryInfo = JBossXBBuilder.configuration.getBeanInfo(DefaultMapEntry.class);
         entryAdapterFactory = createAdapterFactory(DefaultBeanAdapterBuilder.class, entryInfo, null);
         BeanHandler entryHandler = new BeanHandler(entryInfo.getName(), entryAdapterFactory);

         TypeBinding entryType = null;
         TypeInfo entryTypeInfo = null;

         // bind the entry element if present
View Full Code Here

Examples of org.jboss.xb.builder.runtime.BeanHandler

         factory = Config.findMethodInfo(factoryClassInfo, factoryMethod, null, true, true);

      // Create the handler
      BeanInfo beanInfo = JBossXBBuilder.configuration.getBeanInfo(typeInfo);
      BeanAdapterFactory beanAdapterFactory = createAdapterFactory(beanAdapterBuilderClass, beanInfo, factory);
      BeanHandler handler = new BeanHandler(beanInfo.getName(), beanAdapterFactory);
      typeBinding.setHandler(handler);
      if (trace)
         log.trace("Created BeanHandler for type=" + beanInfo.getName() + " factory=" + factory);

      // Look through the properties
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.