请输入您要查询的百科知识:

 

词条 Joose (framework)
释义

  1. Example

  2. References

  3. External links

{{ infobox software
| name = Joose
| logo =
| developer = Malte Ubl
| latest release version = 2.1
| latest release date = {{release date|2009|08|02}}
| genre = Web application framework
| programming language = JavaScript
| license = New BSD License
| website = https://code.google.com/p/joose-js/
}}{{Portal|Free and open-source software}}

Joose is an open-source self-hosting metaobject system for JavaScript with support for classes, inheritance, mixins, traits and aspect-oriented programming.

The Joose meta-object system is multi-paradigm. It supports class-based and prototype-based programming styles as well as class-based inheritance and role-based extension. While other JavaScript frameworks often specialize on DOM-access and AJAX, Joose specializes solely on bringing successful programming techniques to the JavaScript scripting language. Joose is thus often used in conjunction with another DOM/Ajax JavaScript framework and is tested with jQuery, YUI, Dojo, ExtJS, Prototype, Mootools and PureMVC.

Joose was heavily inspired by Moose, the object system for Perl 5 which was itself inspired by Perl 6 object system, but unlike Perl and Moose, Joose doesn't support multiple inheritance.

Example

Two classes written in Joose:

Class("Point", {

    has: {        x: {is: "rw"},        y: {is: "rw"}    },    methods: {        clear: function () {            this.setX(0);            this.setY(0);        }    }

});

Class("Point3D", {

    isa: Point,    has: {        z: {is: "rw"}    },    after: {        clear: function () {            this.setZ(0);        }    }

});

Point3D is a subclass of Point. It has another attribute defined and additional code to run after running the superclass clear() method. The "rw" means the attribute is readable and writable with a pair of get/set accessors generated automatically.

References

{{refbegin}}
  • Ajaxian
  • Google Gears blog
{{refend}}

External links

  • Official website
  • [https://code.google.com/p/joose-js/ Official Joose 2 website]
  • Joose Mailing List
  • Presentation: Software development with JavaScript and Joose
{{Web frameworks}}

1 : JavaScript libraries

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/17 9:23:07