当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: March 2005 DiscussionVelocity:
 

 

    摘要: 利用thread解决paint()和用户输入响应同时将进行的问题。 public class mycanvas extends canvas implements runnable{ int r=0; public mycanvas() { thread t=new thread(this); t.start(); } public void run() { while(true) { r++;......
 ·think in java stream 经典    »显示摘要«
    摘要: import java.io.*;public class newiodemo {public static void main(string[] args) { try { // 1. reading input by lines: bufferedreader in = new bufferedreader( new filereader(args[0])); string s, s2 = ......


Velocity A template engine OR A Rule engine OR Both

discussion 【程序编程相关:一个Jsp初学者的学习过程(四)

march 2005 【推荐阅读:Java软件开发学习笔记(一)

velocity: a template engine or a rule engine or both? 【扩展信息:一个Jsp初学者的学习过程(三)

most of the developers must be familiar with velocity as a great open source template engine and i don’t think i need to say much about its uses and features as a template engine. this paper compiles its features as a rule engine.

i have been working with java for the past 6 years and recently, i got an opportunity to design and develop an entitlement application.

an entitlement is the result of the execution of a formula, or rule that specifies what must be considered when deciding whether a given user has rights to manipulate or use a given resource (or object). this rule may be composed of one or more conditions that might only be evaluated with application context specific data. in addition, a rule evaluation may result in more than simple yes/no answers and contain additional information that would be required by an application to now perform the requested access to the resource. these are called obligations. therefore an entitlement service can be used both as a rule evaluator and a privilege data service.

in its simplest form an entitlement service performs standard authorization calls. for example, can a user perform a simple action against a named resource? in its more complicated form an entitlement may be a rule on how an object such as a financial transaction may be manipulated. in this rule the specific parameters of the transaction may be compared against set limits or current financial data. the rule in this case may be a representation of business logic.


...   下一页
 ·annotations:hype or not?    »显示摘要«
    摘要: 3月23号,jcp发布了jsr 250: common annotations for the javatm platform early draft review(http://jcp.org/en/jsr/detail?id=250),引发了tss的一场规模不大不小的讨论(http://www.theserverside.com/news/thread.tss?thread_id=32833......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE