单词 | grail |
释义 |
n. platter 例句释义: 鹅卵石,杯,盘,圣杯,框架,开发命令 1. "With frameworks like Grails, you can build working Web applications extremely fast, just as you could with Rails, " he said. “借助Grails这样的框架,您可以极为迅速地建立工作Web应用程序,就像Rails那样”,他这样说。 www.ibm.com 2. It would be the dawn of a new era of regenerative medicine, one of the holy grails of modern biology . 如果梦想能得以实现,重建医学的时代将迎来一个崭新的黎明,将成为现代生物学的圣杯。 dictsearch.appspot.com 3. Those methods are just a small sampling of the many dynamic methods that Grails provides for your domain classes. 这些方法只是Grails为你的领域对象所提供的众多动态方法的一小部分而已。 www.infoq.com 4. This setting allows you to have Grails update your database schema at runtime to synchronize it with your domain classes. 这个设置允许Grails在运行时使用你的领域对象同步更新数据库模式。 www.infoq.com 5. The only project that has more downloads and a busier mailing list is Grails, a popular Web framework implemented in Groovy (see Resources). Grails是惟一一个拥有较多下载数量以及繁忙邮件列表的项目,它是在Groovy中实现的流行Web框架(请参阅参考资料)。 www.ibm.com 6. Although the standard Grails tags are quite helpful, you'll eventually run into a situation where you want your own custom tags. 虽然标准Grails标记很有帮助,但是最终会遇到需要自定义标记的情况。 www.ibm.com 7. Finally, whatever the results are, use the JSON converter from Grails to turn the list into a JSON object. 最后,不管结果如何,来自Grails的JSON转换器会将该列表转换成一个JSON对象。 www.ibm.com 8. The constraints we defined represent just a small sample of the validation that Grails offers. 我们定义的约束只代表了Grails提供验证的小部分例子。 www.infoq.com 9. You were able to develop it rapidly and had to write less code because you took advantage of Grails. 由于利用了Grails,因此您能够快速开发该应用程序,而且只需编写较少的代码。 www.ibm.com 10. The bulk of the method is identical to what you'd see if you typed grails generate-controller Airport at the command prompt. 如果在命令提示处输入grailsgenerate-controllerAirport,方法的主要部分将与您所看到的一样。 www.ibm.com 1. As a matter of fact, a GSP page is nothing more than standard HTML with some Grails tags mixed in for dynamic content. 事实上,GSP不过是标准HTML加上一些提供动态内容的Grails标记而已。 www.ibm.com 2. Like the Flex-based application, this will be a completely client-side application that will call your Grails-powered services. 就像基于Flex的应用程序一样,这个应用程序将是一个能够调用Grails服务的客户端应用程序。 www.ibm.com 3. Like Maven, Rails, and AppFuse, Grails scaffolds out a standard directory structure for you. 同Maven、Rails和AppFuse一样,Grails会建立一个标准的目录结构。 www.ibm.com 4. Grails provides a message resources file for you to define your own custom error message. Grails提供了一个消息资源文件,它可让你自定义错误消息。 www.infoq.com 5. But seeing how long it takes Grails to spin up to run the integration tests, this option is less than appealing. 但是Grails转向运行集成测试需要很长时间,所以此选择不太理想。 www.ibm.com 6. Thankfully, a number of URL-shortening Web services are out there practically begging to be integrated with Grails as a custom plug-in. 幸运的是,有几个URL缩短服务强烈要求作为自定义插件集成到Grails中。 www.ibm.com 7. DK: Grails makes it easy to implement a well-designed web application. DK:Grails可以方便地实现设计良好的Web应用。 www.infoq.com 8. Grails embraces modern practices like the Model-View-Controller separation of concerns and convention over configuration. Grails结合了最新的实践,例如模型-视图-控制器的关注点隔离和约定优于配置。 www.ibm.com 9. Getting back to the hypothetical story of you debugging a live Grails application, you still haven't found what you are looking for yet. 回到先前的假设,您正在调试一个实时Grails应用程序,但还没有找到您需要的东西。 www.ibm.com 10. On the front end, Grails handles 1: m relationships with aplomb as well. 在前端,Grails也能够很好地处理1:m关系。 www.ibm.com 1. Try the Shiro Grails plug-in, which provides a few new scripts that you can run to create different realms and controllers. 建议尝试使用这个ShiroGrails插件,它提供了几个新的脚本,运行这些脚本可以创建不同的域和控制器。 www.ibm.com 2. But Grails isn't just a simple "me too" port of Rails to the Java platform. 但是Grails不仅仅是Rails通往Java平台的简单入口。 www.ibm.com 3. To see both the init and destroy events fire, start up Grails in interactive mode by typing grails interactive. 要查看init和destroy事件触发,输入grailsinteractive以交互模式启动Grails。 www.ibm.com 4. To do so, you could easily instruct your build script to copy these files from the JEE project into the Grails project at build time. 使用构建脚本,你可以很容易地做到这点。即,在构建时,将这些文件从JEE工程中复制到Grails工程中。 www.infoq.com 5. In " GORM: Funny name, serious technology, " you were introduced to the basics of GORM, including simple one-to-many relationships. “精通Grails:GORM-有趣的名称,严肃的技术”向您介绍了GORM的基础知识,包括简单的一对多关系。 www.ibm.com 6. Last month's inaugural Mastering Grails article introduced you to a new Web framework named Grails. 在上个月开篇的精通Grails文章中,介绍了名为Grails的新Web框架。 www.ibm.com 7. By commenting out this property, we're instructing Grails to leave the schema as is. 通过把这个设置注释掉,我们指示Grails保持模式的原样。 www.infoq.com 8. Although the semantics of Atom might be new to you, the mechanics of producing an Atom feed using Grails should be pretty straightforward. 虽然您对Atom的语义可能有点陌生,但使用Grails生成Atomfeed的方法应该很简单。 www.ibm.com 9. To see how Grails creates the select field for Airlines, type grails generate-views Flight. 要了解Grails如何为Airline创建选择字段,请输入grailsgenerate-viewsFlight。 www.ibm.com 10. As you can see, creating a Grails plug-in is not much different from creating a typical Grails application. 如您所见,创建Grails插件与创建典型的Grails应用程序没有多大区别。 www.ibm.com 1. All that's left is to finish configuring Grails to use it. 剩下的工作就是配置Grails以使用它。 www.ibm.com 2. If ShortenUrl were a public plug-in, you could type grails release-plugin to push your changes to the Grails Plugins portal. 假如ShortenUrl是一个公共插件,您可以输入grailsrelease-plugin将您的更改提交到GrailsPlugins门户网站。 www.ibm.com 3. In the next Mastering Grails article, you'll flesh out the user authentication and authorization story more fully. 在下一篇精通Grails的文章中,您将更为全面地了解用户身份验证和授权的相关内容。 www.ibm.com 4. The geonames. org geocoding service you used in " Grails services and Google Maps" offers JSON output as well as XML (see Resources). 您在“Grails服务和Google地图”中用过的geonames.orggeocoding服务提供JSON输出和XML(请参阅参考资料)。 www.ibm.com 5. Running a Grails application on your existing production server is no problem either. 在已有的生产服务器上运行Grails应用程序也没有问题。 www.ibm.com 6. The first two articles in this series introduced you to the basic building blocks of the Grails Web framework. 本系列的前两篇文章介绍了GrailsWeb框架的基本构建块。 www.ibm.com 7. And in subsequent installments, I'll explore the Grails plug-in ecosystem further with you. 在随后一期文章中,我将进一步与您一起探索Grails插件。 www.ibm.com 8. uses Grails for some of the commercial parts of its site. 在其站点的某些商业部分使用Grails。 www.ibm.com 9. Then, enter grails run-app, and we're ready to test the validation. 然后,再输入grailsrun-app,我们准备开始测试验证了。 www.infoq.com 10. As different as Grails development is from other typical Java Web frameworks, you still end up with a Java EE-compliant WAR file. 尽管Grails开发与其他典型的JavaWeb框架看起来很不一样,但最终您仍然会得到一个与JavaEE兼容的WAR文件。 www.ibm.com 1. All of the parts of a typical Grails application are right here in this plug-in. 一个典型Grails应用程序的所有部分都在这个插件里。 www.ibm.com 2. To do this, simply copy it to the web-app folder in the Grails application, as shown in Figure 1. 为此,仅需将它复制到Grails应用程序的web-app文件夹下,如图1所示。 www.ibm.com 3. The reason given was that the grails lead developers feel they can get better "service" on issues from internal tomcat developers. 原因在于Grails的主力开发者认为一旦遇到问题,他们能从内部的Tomcat开发者那里获得更好的“服务”。 www.infoq.com 4. Type grails run-app and confirm in JConsole that the log4j MBean doesn't show up in development mode. 输入grailsrun-app并在JConsole中确定log4jMBean没有出现在开发模式中。 www.ibm.com 5. Many of these plug-ins are community-driven, the result of people wanting to use Grails with their presentation-tier technology of choice. 许多插件都是由社区驱动的,是那些希望将Grail与他们喜欢的表示层技术一起使用的人们的努力结果。 www.ibm.com 6. However, Grails generates the web. xml file each time you start your application, so it isn't necessary to modify a web. xml file by hand. 但是,Grails会在您每次启动应用程序时生成web.xml文件,因此不必手动修改web.xml。 www.ibm.com 7. This method instructs Grails to metaprogram the validation methods onto the specified domain class as it would normally during run time. 此方法指示Grails将验证方法元编程到指定的域类上,就像通常在运行时所做的一样。 www.ibm.com 8. You first returned JSON from a Grails controller in " Many-to-many relationships with a dollop of Ajax. " 在“使用Ajax实现多对多关系”中,您首先从一个Grails控制器返回JSON。 www.ibm.com 9. He cited Grails as an example of a simplified enterprise stack built on top of the Java platform. 他引用Grails作为基于Java平台的简化企业栈的例子。 www.ibm.com 10. Mastering Grails: Read more in this series to gain a further understanding of Grails and all you can do with it. 精通Grails:阅读这个系列的其他文章,进一步了解Grails以及如何使用它。 www.ibm.com 1. Now that you have a geocoder in place, the next step is to integrate it with your Grails application. 现在已经准备好地理编码器,下一步就是将它与Grails应用程序集成在一起。 www.ibm.com 2. InfoQ: What is the role of Grails framework in Enterprise Application Development space, especially in terms of scalability and performance? InfoQ:Grails框架在企业应用开发领域的角色是什么,尤其是考虑到伸缩性和性能? www.infoq.com 3. Grails comes pre-packaged with HSQLDB, but since we're using MySQL, we have a few quick steps to tell Grails how to talk to our database. Grails预装了HSQLDB,但因为我们使用的是MySQL,我们需要一些快捷的步骤,来告诉Grails如何与我们的数据库进行交流。 www.infoq.com 4. Mastering Grails: Scott Davis's companion series focuses on this Groovy-based platform for Web development. 精通Grails:ScottDavis的同系列文章,关注面向Web开发的基于Groovy的平台。 www.ibm.com 5. The online Grails documentation lists all the available Grails tags and gives examples of their use (see Resources). Grails的联机文档中列出了所有可用的Grails标记,并提供了它们的用法示例(请参阅参考资料)。 www.ibm.com 6. I'll preserve this spirit in next year's columns, but I also want to expand the horizon to include a variety of Grails applications. 在明年的专栏中,我将继续保留这种风格,但同时我还想纳入各种Grails应用程序,以扩大视野。 www.ibm.com 7. His affable style and dedication to both Groovy and Grails has resonated with a broad swath of readers. 他和蔼的风格以及对Groovy和Grails的奉献精神吸引了广泛的读者。 www.ibm.com 8. Other topics covered in the book are Grails Security, Integration Testing, AJAX, Custom Tags and Plugins for Grails UI and Twitter website. 书中涵盖的其他主题包括Grails安全、集成测试、AJAX、自定义标签,以及针对GrailsUI和Twitter网站的插件。 www.infoq.com 9. For a complete listing of available validation rules, see the Grails online documentation (see Resources). 关于可用的验证规则的完整列表,请参阅Grails的联机文档(请参阅参考资料)。 www.ibm.com 10. Recall from the last article that Grails can run in three modes: development, test, and production. 还记得在上一期的文章中介绍过Grails能够在三种模式下运行:开发模式、测试模式和生产模式。 www.ibm.com 1. In the second part of this article, you will learn how to integrate memcached into a Grails application. 在本系列的第2部分中,您将学习如何将memcached集成到一个Grails应用程序中。 www.ibm.com 2. The resulting directory structure is identical to a typical Grails application. 生成的目录结构与一个典型的Grails应用程序一致。 www.ibm.com 3. provide at least a basic level of support for Grails development. 提供至少一个支持Grails开发的基础层。 www.infoq.com 4. In February, I refreshed my Grails knowledge, later learning that it was tough to teach Grails to developers that didn't know Java. 在二月,我重拾Grails知识,开始艰难地教那些不懂Java的开发人员。 www.cnbeta.com 5. Interestingly, you don't need a separate Web server installed to run Grails applications. 有趣的是,不需要单独安装Web服务器就可以运行Grails应用程序。 www.ibm.com 6. These parameters, like all request parameters in a Grails application, are exposed through the params object. 像Grails应用程序中的所有请求参数一样,这两个参数是通过params对象公开的。 www.ibm.com 7. This month, I'll round out the MVC triptych with a discussion of Grails views. 在本月的文章中,我将通过讨论Grails视图进一步介绍MVC。 www.ibm.com 8. To do so, you can use the Grails command create-service and refactor your code to move business logic to the service class. 为此,您可以使用Grails命令create-service并重构代码以将业务逻辑移到服务类中。 www.ibm.com 9. Be sure to check out the Grails documentation for the complete list of available constraints. 请查看Grails文档以获得全部可用的约束。 www.infoq.com 10. You saw the grails. converters package in action in " Many-to-many relationships with a dollop of Ajax. " 您在“精通Grails:使用Ajax实现多对多关系中见过了使用中的grails.converters”包。 www.ibm.com 1. Grails also integrates very nicely with the many Java libraries and frameworks that these enterprises are already using. Grails还能够非常好地跟这些企业已经在用的很多Java库集成在一起。 www.infoq.com 2. Once you find the right geocoder for the job, create a Grails service to encapsulate the remote Web services call in a reusable method call. 在您找到合适的地理编码器之后,创建一个Grails服务以把远程Web服务调用封装在可重用方法调用中。 www.ibm.com 3. You can, of course, type grails test-app -integration to run just the integration tests. 当然,您可以键入grailstest-app-integration来仅运行集成测试。 www.ibm.com 4. This change simply points a production instance of Grails at an underlying MySQL database running on the same machine (localhost). 这一修改将指向在同一台机器(本地主机)上运行的底层MySQL数据库上的Grails生产实例。 www.ibm.com 5. You'll see some generic interfaces generated by Grails that support CRUD (create, read, update, delete) on my domain object. 您将看到在我的域对象中,Grails生成了一些支持CRUD(创建、读取、更新、删除)的通用接口。 www.ibm.com 6. Grails supports Spring configuration through an alternate file: resources. groovy. Grails通过一个替代文件resources.groovy支持Spring配置。 www.ibm.com 7. You'll revisit the RESTful side of Grails, but in the context of setting up a full Atom infrastructure. 您将重温Grails的RESTful,但是是在设置完全Atom基础设施的环境中。 www.ibm.com 8. InfoQ: What do you think about the role of Grails as a Domain Driven Development (DDD) framework? InfoQ:你对Grails作为领域驱动开发(DDD)框架这一角色怎么看? www.infoq.com 9. For each new feature you add to your Grails application, you'll most likely touch the model, the view, and the controller. 对于添加到Grails应用程序的每个新特性,很可能都要涉及模型、视图和控制器。 www.ibm.com 10. Grails automatically provides dynamic finders for just about every query combination you can think of! Grails为你所能想到的每个查询组合自动提供动态查找器! www.infoq.com 1. If necessary, download and install a Grails-compatible version of the JDK (see Resources). 必要时,下载并安装一个与Grails兼容的JDK(见参考资料)。 www.ibm.com 2. By default, all fields in a domain class are required to be nonnull in Grails. 在Grails中,默认情况下,域类中的所有字段必须非空。 www.ibm.com 3. But because you are in a plug-in instead of a full Grails application, you cannot assume that a database will be in place. 但是您在一个插件中而不是在应用程序中,因此您不能假定存在这样一个数据库。 www.ibm.com 4. You will kick-start your development using some of the Grails code-generation scripts. 我们将使用一些Grails代码生成脚本开始开发。 www.ibm.com 5. The line in application. properties corresponds to the unzipped directory in your project directory in . grails. 在application.properties内的行对应于.grails内的project目录中的解压缩目录。 www.ibm.com 6. Grails encourages a bottom-up development process, where you usually start by defining your domain models. Grails鼓励采用自下而上的开发过程,在这种开发过程中通常从定义域模型开始。 www.ibm.com 7. In the next article, you'll get a chance to play around with the Grails event model. 在下一篇文章中,您将有机会了解Grails事件模型。 www.ibm.com 8. If you aren't already in the habit of writing tests, allow Grails to nudge you gently in the right direction. You won't regret it. 如果以前没有编写测试的习惯,那么Grails将优雅地将您带到正确的方向上来,您肯定不会后悔。 www.ibm.com 9. When you typed grails create-domain-class Trip, a test was generated on your behalf. 在输入grailscreate-domain-classTrip时,将会为您生成一个测试。 www.ibm.com 10. You can find examples of one-to-one and many-to-many relationships in the online Grails documentation; see Resources. 在Grails的联机文档中,可以找到一对一和多对多关系的示例,请参阅参考资料。 www.ibm.com 1. This resets the autonumbering back to 0 when Grails recreates the tables the next time it starts up. 这样就可以在下次启动Grails重新创建表时将自动编号重置为0。 www.ibm.com 2. The script compiles code from the grails-app tree and combines it with code from the base Grails ($GRAILS_HOME) directory. 该脚本编译grails-app树中的代码并且将其与基本Grails($GRAILS_HOME)目录中的代码组合在一起。 www.ibm.com 3. A better solution is to have Grails automatically convert spaces to underscores depending on where the Entry. title is used. 更好的方法是让Grails根据使用Entry.title的位置自动将空白转变为下划线。 www.ibm.com 4. To run the application, simply issue the Grails command run-app. 要运行应用程序,只需发出Grails命令run-app。 www.ibm.com 5. As I demonstrated in the preceding section, Grails uses select fields by default to display 1: m relationships. 正如我在前一节中演示的,默认情况下,Grails使用选择字段来显示1:m关系。 www.ibm.com 6. Grails looks for the constraints declarations in the same directory as our domain class. Grails在领域类相同的目录下查找约束声明。 www.infoq.com 7. Grails gives you a place to store commonly used methods that transcend any single domain class: services. Grails为您提供了保存常用方法的位置,并且超越了任何单个的域类:即服务。 www.ibm.com 8. Even if you've never used Hibernate or Grails before, you can quickly get the gist of what's going on here. 即使你以前从未使用过Hibernate或Grails,你也可以很快地明白这儿所发生事情的要旨。 www.infoq.com 9. Many Grails plugins also provide DSLs to interact with the libraries or frameworks they wrap. 很多Grails插件还提供了DSL用来与这些插件所包装的库或框架进行交互。 www.infoq.com 10. The event handling in Grails can be managed both at macro and micro levels. 我们可以在宏观以及微观层次处理Grails的事件。 www.infoq.com 1. Obviously, there's no shortage of alternate view solutions for Grails applications. 显然,Grails应用程序并不缺少备选的视图解决方案。 www.ibm.com 2. Though I don't think any single framework will ever hold the spot that Struts did, I think Grails will become the leading JVM web framework. 尽管我认为没有一个框架可以获得当初Struts曾经获得的关注度,但我认为Grails将成为领先的JVMWeb框架。 www.infoq.com 3. We believe this makes Grails development a quite a lot more enjoyable. 我们相信这能让Grails的开发更有乐趣。 www.infoq.com 4. The event closures are called by Grails when the corresponding "events" get generated in the Gant script. 当Gant脚本中发生“事件”时,Grails就会调用相应的事件闭包。 www.infoq.com 5. The latest improvements in this area added support for Groovy and Grails applications. 最近的改进中添加了对Groovy和Grails应用程序的支持。 www.infoq.com 6. This directory is where the compiled classes are stored when you type grails run-app. 这个目录内保存了在键入grailsrun-app时被编译的那些类。 www.ibm.com 7. Grails takes the lessons learned from Rails and mixes them with the sensibilities of modern Java development. Grails吸取了Rails的经验,并将它们与现代Java开发的意识相结合。 www.ibm.com 8. The Plug-in Developers Guide: Here's the online documentation for Grails plug-in developers. 插件开发人员指南:这是针对Grails插件开发人员的在线文档。 www.ibm.com 9. Type grails generate-views Airport at the command prompt to create the GSP files. 在命令提示处输入grailsgenerate-viewsAirport来创建GSP文件。 www.ibm.com 10. Events throughout Grails can help you further customize the way your application behaves. Grails中的事件能帮助您进一步自定义应用程序运行的方式。 www.ibm.com 1. Over the past several Mastering Grails articles, you've been building a tiny little blog service ( Blogito) piece by piece. 在过去几期的精通Grails文章中,您一直在逐步构建一个小型的博客服务(Blogito)。 www.ibm.com 2. Grails uses this feature to provide DSLs for ORM mapping, wiring Spring beans, and other configurations. Grails使用这个特性提供了ORM映射、装配SpringBean,以及其他配置的DSL。 www.infoq.com 3. When you type grails clean, the application directory under projects is deleted. 当键入grailsclean时,projects下的application目录会被删除。 www.ibm.com 4. It also uses the Elvis operator you first saw in " Testing your Grails application. " 它还使用您在“测试Grails应用程序”中首次见到的Elvis操作符。 www.ibm.com 5. If you reboot Grails, it reverts to the persistent settings in Config. groovy. 如果重新启动Grails,它会恢复到Config.groovy中的持久化设置。 www.ibm.com 6. Type grails create-app foo to create a simple application. 输入grailscreate-appfoo创建一个简单的应用程序。 www.ibm.com 7. Grails tries to wrap each test in a database transaction. Grails试图在数据库事务中包含所有测试。 www.ibm.com 8. But rather than talk more about how Grails works, let's see it in action. 在此,我们不详细讨论Grails是如何工作的,而是看看它的实际效果。 www.ibm.com 9. Grails will continue to support both jetty and tomcat integrations, but will move to tomcat hosting mode by default. Grails还会继续支持Jetty和Tomcat的集成,但默认是处于Tomcat托管模式下。 www.infoq.com 10. Grails supports two basic types of tests: unit and integration. Grails支持两种基本的测试类型:单元测试和集成测试。 www.ibm.com 1. To embed a Google Map in your Grails application, the first thing you need to do is get a free API key. 要将GoogleMap嵌入到Grails应用程序中,首先要做的是获得一个免费的API密匙。 www.ibm.com 2. In the next article, you will learn how to deal with legacy databases in Grails. 在下一篇文章中,您将会学习如何处理Grails中的遗留数据库。 www.ibm.com 3. If you are using Grails in front of a legacy database, I highly recommend commenting the dbCreate value out altogether. 如果对传统的数据库使用Grails,那么我强烈推荐注释掉dbCreate的值。 www.ibm.com 4. Finally, the columns block maps the Grails names to the database names. 最后,columns块将Grails名称映射到数据库名称。 www.ibm.com 5. Type grails test-app -unit to run just the unit tests. 键入grailstest-app-unit运行单元测试。 www.ibm.com 6. You'll get a brief introduction to Spring configuration in Grails. 本文将简要介绍Grails中的Spring配置。 www.ibm.com 7. Grails produces a standard JEE WAR that can be deployed to their existing application servers. Grails可以产生能部署到他们现有应用服务器的标准JEEWAR。 www.infoq.com 8. Type grails test-app -unit User to target the specific test class you are interested in. 键入grailstest-app-unitUser定位到您感兴趣的特定测试类。 www.ibm.com 9. The mapping block is especially helpful if you have existing legacy tables that you'd like to use in your new Grails application. 如果要在新的Grails应用程序中使用现有的遗留表,那么这个映射块会特别有帮助。 www.ibm.com 10. The trouble with this implicit constraint is that you usually interact with Grails via an HTML form. 这项隐含限制的问题在于,您通常会通过HTML表单与Grails交互。 www.ibm.com 1. DK: Tool support for Groovy and Grails is constantly improving. DK:工具对Groovy和Grails的支持一直在改进。 www.infoq.com 2. By simply having a member variable following the xyzService convention, Grails knows to inject the xyzService singleton. 只要拥有遵循xyzService约定的成员变量,Grails就知道需要注入xyzService单体。 www.ibm.com 3. DK: Grails borrows many principles and ideas from Rails, as does Lift. DK:Grails借用了很多Rails的原则和想法,Lift也一样。 www.infoq.com 4. The event handlers for Gant scripts, available since version 0. 5, are triggered during execution of Grails target and plugin scripts. 针对Gant脚本的事件处理器首次出现在0.5版中,并在Grails目标和插件脚本的执行过程中被触发。 www.infoq.com 5. To begin, type grails create-tag-lib Login at the command prompt. 首先,在命令提示下输入grailscreate-tag-libLogin。 www.ibm.com 6. We're using the Grails tag library to help us out here. 此处,我们使用了Grails标签库。 www.infoq.com 7. I can also call commands inside the IDE coming from Grails plugins, which I can install from within the IDE too. 我可以在IDE内调用来自Grails插件的命令,也可以将这些插件安装在IDE内。 www.bing.com 8. You should see Grails in the list of local JMX agents, as shown in Figure 1. 您将在本地JML代理列表中看到Grails,如图1所示。 www.ibm.com 9. In the next Mastering Grails installment, I'll turn my attention to testing. 在下一期的精通Grails中,我将把重点转向测试。 www.ibm.com 10. When you run this test by typing grails test-app -unit AdminService at the command prompt, it fails. 当在命令提示符处键入grailstest-app-unitAdminService来运行此测试时,将会失败。 www.ibm.com 1. However, the problem with that approach is that you must migrate your customizations each time you upgrade Grails. 不过,使用此方法的问题是:每次升级Grails时都必须迁移自定义内容。 www.ibm.com 2. The def scaffold = Trip line instructs Grails to generate the GSPs dynamically at run time. defscaffold=Trip行告诉Grails在运行的时候动态地生成GSP。 www.ibm.com 3. This naked objects pattern of decorating the domain object (see Resources) is used extensively throughout Grails. 这种使用裸对象修饰域对象的模式(请参阅参考资料)在Grails中应用得非常广泛。 www.ibm.com 4. In addition to build events, Grails developers can also catch application events for customization of the application logic. 除了构建事件,Grails开发者还可以捕获应用事件以定制应用的逻辑。 www.infoq.com 5. Obviously Grails builds on Spring so the acquision made a lot of sense from an infrastructure perspective. 由于之前Grails是构建在Spring之上的,所以从基础架构方面来看,这次收购很有意义。 blog.163.com 6. Restart Grails and upload the Grails logo once again. 重新启动Grails,并再次上传Grails徽标。 www.ibm.com 7. You now have Grails using a database other than HSQLDB. 现在的Grails使用的就是HSQLDB之外的数据库。 www.ibm.com 8. Type grails run-app to verify that your mapping block works. 输入grailsrun-app,验证mapping块可以运行。 www.ibm.com 9. In order to answer the challenge of "Agile" or "Rapid" development, technical solutions like Ruby on Rails and Grails emerged. 为了迎接“敏捷”或“快速”开发的挑战,像RubyonRails和Grails这样的技术解决方案出现了。 www.infoq.com 10. Restart Grails with these new settings. 使用这些设置重新启动Grails。 www.ibm.com 1. life cycle events of Grails domain classes. Grails领域类的生命周期事件。 www.infoq.com 2. My examples use the Grails logo; you can use any image file you'd like. 我的例子使用Grails徽标;您也可以使用任何自己喜欢的图像。 www.ibm.com 3. If you have more trips to display, Grails creates previous and next pagination links automatically. 如果有更多的trip要显示,Grails会自动创建上一页和下一页的分页链接。 www.ibm.com 4. Type grails test-app and verify that your test passes. 输入grailstest-app并验证您的测试是否通过。 www.ibm.com 5. I'm often asked if I think that Grails is enterprise-ready. The short answer is yes. 常常有人问我Grails是否已经可以在企业中使用。 www.ibm.com 6. Specifically, all Grails artifacts get a log object injected into them at run time so that they can easily log messages for later review. 具体来讲,所有Grails工件都会在运行时被注入一个log对象,以便它们可以轻松地记录消息,以供未来审核。 www.ibm.com 7. This article shows you how to optimize your Grails applications for mobile browsers. 本文将向您展示如何优化Grails应用程序,使其适用于移动浏览器。 www.ibm.com 8. When you type grails war, the web. xml file found here is what gets included in the resulting WAR. 在输入grailswar时,这里的web.xml文件就会被包含到生成的WAR内。 www.ibm.com 9. The grails test-app command, in addition to running the tests, creates a nice HTML report. grailstest-app命令除了运行测试之外,还会创建很好的HTML报告。 www.ibm.com 10. InfoQ: Are there any features that currently don't exist in Grails framework you would like see added? InfoQ:是否有些特性是目前Grails框架中还没有,但你又特别想要的? www.infoq.com 1. Anyone could then type grails install-plugin shortenurl to integrate it with their project. 然后,任何人都可以输入grailsinstall-pluginshortenurl将它集成到他们的项目中。 www.ibm.com 2. But to appreciate Grails fully, you have to experience it first-hand. 不过,要想全面地鉴赏Grails,还需要亲身体验一下。 www.ibm.com 3. To start Grails in beta mode, type grails -Dgrails. env=beta run-app. 要在beta模式下启动Grails,请输入grails-Dgrails.env=betarun-app。 www.ibm.com 4. Grails recently released version 0. 5, with improved performance, custom URLs, enhancements to GORM and more. Grails最近发布了0.5版本,该版本包括了性能的提高,自定义URL,增强GORM等一些特点。 www.infoq.com 5. There are Grails plugins that allow for easily adding features such as caching, clustering, security, search, web services, etc. 而且,还有不少Grails插件可以轻松地添加诸如缓存、集群、安全、搜索、Web服务等这样的特性。 www.infoq.com 6. In the book, Dave explains how to use Grails by iteratively building a sample web application called TekDays. com. 在这本书里,Dave通过迭代构建一个叫做TekDays.com的Web应用示例解释了Grails的使用。 www.infoq.com 7. DK: Grails is a great fit for any enterprise that is already using Java. DK:Grails非常适合已经使用Java的任何企业。 www.infoq.com 8. This will guarantee that the Grails versions of these classes are loaded and we will not have any nasty class-loader conflicts. 这将确保装载这些类的Grails版本,并且不会出现任何烦人的类装载程序冲突。 www.ibm.com 9. This is really more of a personal desire, I think that Grails support or any of the other points I have listed would affect far more people. 这实际上更多的是一个个人意愿,我认为对Grails的支持或我所罗列的其他各点将会影响更多的人。 www.infoq.com 10. Make sure you're in the project's root directory - in our case, it's ejb3_grails. 确保你在工程的根目录下——在我们的例子中,它是ejb3_grails。 www.infoq.com 1. And finally, you'll explore the life cycle events of Grails domain classes. 最后,探讨Grails域类的生命周期事件。 www.ibm.com 2. This example shows how to use the filters in Grails. 本例显示了如何使用Grails内的这些过滤器。 www.ibm.com 3. This is what I use in most cases because it feels the most Grails-like. 大多数情况下我都会使用这个块,因为它感觉最像Grails。 www.ibm.com 4. Well, Grails doesn't require that you have an EJB3 application as your starting point. Grails并不需要你以一个EJB3应用作为起点。 www.infoq.com 5. So, let's see what it takes to build a Grails application backed by EJB3 entity beans. 那么,让我们看看基于EJB3实体Bean构建Grails应用要做哪些工作。 www.infoq.com 6. The static mapping block is the easiest way to accomplish this task because it is the most Grails-like. 静态的mapping块是完成这个任务的最简单的方式,因为它与Grails最相似。 www.ibm.com 7. Grails: This article uses Grails Version 1. 0. 3. Grails:这篇文章使用1.0.3版本的Grails。 www.ibm.com 8. What is important is that your application is set up according to the Grails conventions. 重要的是您的应用程序是根据Grails约定建立的。 www.ibm.com 9. Finally, Grails copies and unzips the plug-in from the local cache to your project, as shown in Listing 9 最后,Grails会从本地缓存中将这些插件复制到您的项目并进行解压缩,如清单9所示 www.ibm.com 10. To run the failing test, type grails test-app at the command prompt. You should see the results shown in Listing 5 要运行这个将会失败的测试,在命令提示符处键入grailstest-app。 www.ibm.com 1. Add three new lines to your Grails startup script, as shown in Listing 4 向Grails启动脚本添加三个新行,如清单4所示 www.ibm.com 2. Deploying a Grails application via Tomcat's management interface 通过Tomcat管理接口部署Grails应用程序 www.ibm.com 3. You should see Grails output a few lines ending in something like 您应当会发现Grails输出了一些代码行,其结尾类似如下内容 www.ibm.com 4. Okay, you do need to have a JDK installed. (Grails is good, but it's not that good. ) 您的确需要安装一个JDK(Grails是不错,但是还没有好到那种程度)。 www.ibm.com 5. When you type grails clean and choose the local version of the script, you should see 输入grailsclean并选择本地脚本版本后,应该看到如下内容 www.ibm.com 6. Accessing a database pool from Grails 从Grails访问数据库池 www.ibm.com 7. If you forget this final step (I do nearly every time I use EJB3 annotations in Grails), you'll get the following error message 如果忘了这最后一步的话(我几乎每一次在Grails中使用EJB3注释时都会忘记这一步),会得到如下的错误信息 www.ibm.com 8. On convincing someone to try Grails for the first time 当谈及如何去说服别人作第一次Grails的尝试时 www.infoq.com |
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。