Examples of Util


Examples of net.csdn.annotation.Util

                        if (!ctClass.hasAnnotation(Util.class)) {
                            return null;
                        }
                        logger.info("util load :    "+ctClass.getName());
                        final Class clzz = ctClass.toClass();
                        final Util util = (Util) clzz.getAnnotation(Util.class);
                        if (clzz.isInterface())
                            throw new AnnotationException(format("{} util should not be interface", clzz.getName()));
                        moduleList.add(new AbstractModule() {
                            @Override
                            protected void configure() {
                                bind(clzz).in(util.value());
                            }
                        });
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
View Full Code Here

Examples of org.apache.log4j.db.dialect.Util

      if (connection == null) {
        getLogger().warn("Could not get a conneciton");
        return;
      }
      DatabaseMetaData meta = connection.getMetaData();
      Util util = new Util();
      util.setLoggerRepository(repository);
      supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
      supportsBatchUpdates = util.supportsBatchUpdates(meta);
      dialectCode = Util.discoverSQLDialect(meta);
    } catch (SQLException se) {
      getLogger().warn("Could not discover the dialect to use.", se);
    }
  }
View Full Code Here

Examples of org.apache.log4j.db.dialect.Util

      if (connection == null) {
        getLogger().warn("Could not get a conneciton");
        return;
      }
      DatabaseMetaData meta = connection.getMetaData();
      Util util = new Util();
      util.setLoggerRepository(repository);
      supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
      supportsBatchUpdates = util.supportsBatchUpdates(meta);
      dialectCode = Util.discoverSQLDialect(meta);
    } catch (SQLException se) {
      getLogger().warn("Could not discover the dialect to use.", se);
    }
  }
View Full Code Here

Examples of org.apache.log4j.receivers.db.dialect.Util

      if (connection == null) {
        getLogger().warn("Could not get a conneciton");
        return;
      }
      DatabaseMetaData meta = connection.getMetaData();
      Util util = new Util();
      util.setLoggerRepository(repository);
      if (overriddenSupportsGetGeneratedKeys != null) {
        supportsGetGeneratedKeys = overriddenSupportsGetGeneratedKeys
            .booleanValue();
      } else {
        supportsGetGeneratedKeys = util.supportsGetGeneratedKeys(meta);
      }
      supportsBatchUpdates = util.supportsBatchUpdates(meta);
      dialectCode = Util.discoverSQLDialect(meta);
    } catch (SQLException se) {
      getLogger().warn("Could not discover the dialect to use.", se);
    } finally {
      DBHelper.closeConnection(connection);
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util

        ServletContext sc = request.getSession().getServletContext()
        ServerContext sctx = ServerContextFactory.get(sc)
        //��õ�ǰ��� index.jsp ҳ������нű�session 
        //Collection sessions = sctx.getScriptSessionsByPage("/ind.jsp"); 
        Collection sessions = sctx.getScriptSessionsByPage("/fly-web/ind.jsp")
        Util util = new Util(sessions)
        //������Щҳ���е�һЩԪ�� 
        util.removeAllOptions("users")
        util.addOptions("users", users, "username")
        util.removeAllOptions("receiver")
        util.addOptions("receiver", users,"userid","username");
        //������������¼      
        util.addOptions("ms", ms,"msid","hahah");
       
        if(!flag){ 
            return null
       
        return user.getUserid()
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util

            sb.appendScript("showMessage({msg: '").appendScript(msg).appendScript("'})");
            System.out.println(sb.toString());
           
            session.addScript(sb);
       
        Util util = new Util(session)
        util.setStyle("showMessage", "display", "")
        util.setValue("sender", sender)
        util.setValue("msg", msg)
        util.setValue("test",msg);
   
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util

        WebContext wctx = WebContextFactory.get();
        String currentPage = wctx.getCurrentPage();

        // Get a DWR Util proxy for all the browsers on the current page:
        Collection sessions = wctx.getScriptSessionsByPage(currentPage);
        Util utilAll = new Util(sessions);

        ScriptBuffer referenceInvoke = getInvokeFragment(args, wctx);

        // add the reference call to the Util proxy which will cause DWR to
        // asynchronously send it to be run on each active browser client
        utilAll.addScript(referenceInvoke);
    }
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util

        WebContext wctx = WebContextFactory.get();
        String currentPage = wctx.getCurrentPage();

        // Get a DWR Util proxy for all the browsers on the current page:
        Collection sessions = wctx.getScriptSessionsByPage(currentPage);
        Util utilAll = new Util(sessions);

        ScriptBuffer referenceInvoke = getInvokeFragment(args, wctx);

        // add the reference call to the Util proxy which will cause DWR to
        // asynchronously send it to be run on each active browser client
        utilAll.addScript(referenceInvoke);
    }
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util

        WebContext wctx = WebContextFactory.get();
        String currentPage = wctx.getCurrentPage();

        // Get a DWR Util proxy for all the browsers on the current page:
        Collection sessions = wctx.getScriptSessionsByPage(currentPage);
        Util utilAll = new Util(sessions);

        ScriptBuffer referenceInvoke = getInvokeFragment(args, wctx);

        // add the reference call to the Util proxy which will cause DWR to
        // asynchronously send it to be run on each active browser client
        utilAll.addScript(referenceInvoke);
    }
View Full Code Here

Examples of org.directwebremoting.proxy.dwr.Util

        WebContext wctx = WebContextFactory.get();
        String currentPage = wctx.getCurrentPage();

        // Get a DWR Util proxy for all the browsers on the current page:
        Collection sessions = wctx.getScriptSessionsByPage(currentPage);
        Util utilAll = new Util(sessions);

        ScriptBuffer referenceInvoke = getInvokeFragment(args, wctx);

        // add the reference call to the Util proxy which will cause DWR to
        // asynchronously send it to be run on each active browser client
        utilAll.addScript(referenceInvoke);
    }
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.