Java 2 Ada

Ada Database Objects 0.4.0 is available

By Stephane Carrez

The Ada Database Objects is an Object Relational Mapping for the Ada05 programming language. It allows to map database objects into Ada records and access databases easily. Most of the concepts developped for ADO come from the Java Hibernate ORM. ADO supports MySQL and SQLite databases.

The new version brings:

  • Support to reload query definitions,
  • It optimizes session factory implementation,
  • It allows to customize the MySQL database connection by using MySQL SET

This version can be downloaded at http://code.google.com/p/ada-ado/downloads/list.

To add a comment, you must be connected. Login to add a comment

Ada Server Faces 0.5.0 is available

By Stephane Carrez

Ada Server Faces is an Ada implementation of several Java standard web frameworks.

  • The Java Servlet (JSR 315) defines the basis for a Java application to be plugged in Web servers. It standardizes the way an HTTP request and HTTP response are represented. It defines the mechanisms by which the requests and responses are passed from the Web server to the application possibly through some additional filters.
  • The Java Unified Expression Language (JSR 245) is a small expression language intended to be used in Web pages. Through the expressions, functions and methods it creates the link between the Web page template and the application data identified as beans.
  • The Java Server Faces (JSR 314 and JSR 344) is a component driven framework which provides a powerful mechanism for Web applications. Web pages are represented by facelet views (XHTML files) that are modelized as components when a request comes in. A lifecycle mechanism drives the request through converters and validators triggering events that are received by the application. Navigation rules define what result view must be rendered and returned.

Ada Server Faces gives to Ada developers a strong web framework which is frequently used in Java Web applications. On their hand, Java developers could benefit from the high performance that Ada brings: apart from the language, they will use the same design patterns.

Ada Server Faces

The new version of Ada Server Faces is available and brings the following changes:

  • The Security packages was moved in a separate project: Ada Security,
  • New demo to show OAuth and Facebook API integration,
  • Integrated jQuery 1.8.3 and jQuery UI 1.9.2,
  • New converter to display file sizes,
  • Javascript support was added for click-to-edit behavior,
  • Add support for JSF session beans,
  • Add support for servlet error page customization,
  • Allow navigation rules to handle exceptions raised by Ada bean actions,
  • Support the JSF 2.2 conditional navigation,
  • New functions fn:escapeXml and fn:replace.

The new version can be downloaded on the Ada Server Faces project page. A live demo is available at http://demo.vacs.fr/demo.

To add a comment, you must be connected. Login to add a comment

Ada Security 1.0.0 is available

By Stephane Carrez

Ada Security is a security framework which allows web applications to define and enforce security policies. The framework allows users to authenticate by using OpenID Authentication 2.0. Ada Security also defines a set of client methods for using the OAuth 2.0 protocol.

Ada Security Framework

  • A security policy manager defines and implements the set of security rules that specify how to protect the system or the resources.
  • A user is authenticated in the application. Authentication can be based on OpenID or another system.
  • A security context holds the contextual information that allows the security policy manager to verify that the user is allowed to access the protected resource according to the policy rules.

The Ada Security framework can be downloaded at Ada Security project page.

The framework is the core security framework used by Ada Server Faces and Ada Web Application to protect access to resources.

To add a comment, you must be connected. Login to add a comment

Ada Utility Library 1.6.0 is available

By Stephane Carrez

Ada Utility Library is a collection of utility packages for Ada 2005. A new version is available which provides:

  • Support for HTTP clients (curl, AWS, ...)
  • Support for REST APIs using JSON
  • New operations To_JSON and From_JSON for easy object map serialization
  • Added a listeners to help implementing the observer/listener design patterns
  • Added support for wildcard mapping in serialization framework
  • New option -d <dir> for the unit test harness to change the working directory,
  • New example facebook.adb to show the REST support.

It has been compiled and ported on Linux, Windows and Netbsd (gcc 4.4, GNAT 2011, gcc 4.6.3). You can download this new version at http://code.google.com/p/ada-util/downloads/list.

To add a comment, you must be connected. Login to add a comment

Ada BFD 1.0 is available

By Stephane Carrez

Ada BFD is an Ada binding for the GNU Binutils BFD library.

It allows to read binary ELF, COFF files by using the GNU BFD. The Ada BFD library allows to:

      list and scan the ELF sections of an executable or object file,
    
        get the content of the ELF sections,
      
          get access to the symbol table,
        
            use the BFD disassembler 
          

          Version 1.0 of this Ada binding library is now available on Ada BFD. This new release bring the following changes:

          • Fixed installation of library
          • Added examples for BfdAda
          • Add support to use the disassembler
          To add a comment, you must be connected. Login to add a comment

          AWA 0.2 is available

          By Stephane Carrez

          Ada Web Application is a framework to build web applications easily on top of Ada Server Faces, Ada Database Objects and Ada Web Server.

          The new version of the framework provides:

          • A new event framework with configurable action listeners,
          • Persistent event queues for the event framework,
          • A new blog module and wiki engine supporting Google Wiki, Creole, MediaWiki, phpPP and Dotclear syntax,
          • New mail UI components allowing to generate and send email easily with the ASF presentation pages,
          • A new Javascript plugin Markedit with jQuery Markedit (MIT License)

          This new version can be downloaded at http://code.google.com/p/ada-awa/downloads/list (downloading the awa-all package is recommended to get the project and its dependencies).

          A demo of an AWA application is available at http://demo.vacs.fr/atlas/

          To add a comment, you must be connected. Login to add a comment

          Dynamo 0.5.0 is available

          By Stephane Carrez

          Dynamo is a tool to help developers write an Ada Web Application using the Ada Server Faces and the Ada Database Objects frameworks. Dynamo provides several commands to perform one specific task in the development process: creation of an application, generation of database model, generation of Ada model, creation of database.

          The new version of Dynamo provides:

          • Support multi-line comments in XML mappings,
          • Generate List_Bean types for the XML mapped queries,
          • Add support for Ada enum generation,
          • Add test template generation,
          • Add AWA service template generation,
          • Add support for blob model mapping,
          • New command 'add-ajax-form', 'add-query', 'dist', 'create-plugin'

          The Dynamo tool is available at http://code.google.com/p/ada-gen. To build Dynamo, you will need:

          To add a comment, you must be connected. Login to add a comment

          Ada Database Objects 0.3.0 is available

          By Stephane Carrez

          The Ada Database Objects is an Object Relational Mapping for the Ada05 programming language. It allows to map database objects into Ada records and access databases easily. Most of the concepts developped for ADO come from the Java Hibernate ORM. ADO supports MySQL and SQLite databases.

          The new version brings:

          • Support to update database records when a field is really modified,
          • Customization of the SQLite database connection by using SQLite PRAGMAs,
          • Escape of MySQL or SQLite reserved keywords,
          • Support for blob type.

          This version can be downloaded at http://code.google.com/p/ada-ado/downloads/list.

          To add a comment, you must be connected. Login to add a comment

          Ada Server Faces 0.4.0 is available

          By Stephane Carrez

          Ada Server Faces is a web framework which uses the Java Server Faces design patterns (See JSR 252, JSR 314 or the latest one the JSR 344).

          This new version brings a serious step ahead towards JSF compatibility. This new version provides:

          • Support for shared or static build configuration,
          • Support for file upload,
          • New components <h:inputFile>, <f:metadata>, <f:viewParam>, <f:viewAction>,
          • New EL function util:hasMessage,
          • ASF now Implements the JSF phase events and phase listeners,
          • Implements the JSF/Ruby on Rails flash context,
          • Adds the pre-defined JSF beans: initParam, flash,
          • Support for locales and honors the Accept-Language,
          • New demos are available in French and English

          It has been compiled and ported on Linux, Windows and Netbsd (gcc 4.4, GNAT 2011, gcc 4.6.2). You can download this new version at http://code.google.com/p/ada-asf/downloads/list.

          A live demo is available at: http://demo.vacs.fr.

          Feel free to play with the OpenID stuff!!!

          To add a comment, you must be connected. Login to add a comment

          Ada Utility Library 1.5.0 is available

          By Stephane Carrez

          Ada Utility Library is a collection of utility packages for Ada 2005. A new version is available which provides:

          • Concurrent fifo queues and arrays
          • Changed Objects.Maps to use a String instead of an Unbounded_String as the key
          • Support for shared or static build configuration
          • Implementation of input/output/error redirection to a file for process launch

          It has been compiled and ported on Linux, Windows and Netbsd (gcc 4.4, GNAT 2011, gcc 4.6.2). You can download this new version at http://code.google.com/p/ada-util/downloads/list.

          To add a comment, you must be connected. Login to add a comment

          Ada Server Faces 0.3.0 is available

          By Stephane Carrez

          Ada Server Faces is a web framework which uses the Java Server Faces design patterns (See JSR 252 and JSR 314).

          JSF and ASF use a component-based model for the design and implementation of a web application. The presentation layer is implemented using XML or XHTML files and the component layer is implemented in Ada 05 for ASF and in Java for JSF.

          A new version of ASF is available which provides:

          • New components used in HTML forms (textarea, select, label, hidden),
          • New components for the AJAX framework,
          • Support for dialog boxes with jQuery UI,
          • Pre-defined beans in ASF contexts: param, header,
          • A complete set of example and documentation for each tag.

          It has been compiled and ported on Linux, Windows and Netbsd (gcc 4.4, GNAT 2011, gcc 4.6.2). You can download this new version at http://code.google.com/p/ada-asf/downloads/list.

          A live demo is available at: http://demo.vacs.fr.

          To add a comment, you must be connected. Login to add a comment

          Ada Utility Library 1.4.0 is available

          By Stephane Carrez 6 comments

          Ada Utility Library is a collection of utility packages for Ada 2005. A new version is available which provides:

          • Support for localized date format,
          • Support for process creation and pipe streams (on Unix and Windows),
          • Support for CSV in the serialization framework,
          • Integration of Ahven 2.1 for the unit tests (activate with --enable-ahven),
          • A tool to generate perfect hash function

          It has been compiled and ported on Linux, Windows and Netbsd (gcc 4.4, GNAT 2011, gcc 4.6.2). You can download this new version at http://code.google.com/p/ada-util/downloads/list.

          6 comments
          To add a comment, you must be connected. Login to add a comment