Rahul Sharma (Editor)

Brutos Framework

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Brandao

Development status
  
Active

Operating system
  
Cross-platform

Initial release
  
May 17, 2009

Written in
  
Java

Stable release
  
2.0RC1 / 30 June 2015; 19 months ago (2015-06-30)


The Brutos Application Framework is MVC controller written in Java. Designed to reduce the complexity of web development, with configurable mapping, view resolution as well as support for uploading and downloading files. Can be configured using XML, annotations and CoC.

Contents

The framework follows the below principles:

  • flexibility;
  • loose coupling and
  • productivity.
  • Release Bundle Downloads

    The Brutos team provides release bundles hosted on the SourceForge File Release System, in ZIP.

    Each release bundle contains JARs, documentation, source code, and other information.

    You can download releases of Brutos, from the list at sourceforge.net/projects/brutos/files/brutos/.

    Maven Repository Artifacts

    They are produced a number of artifacts. All under the org.brandao groupId.

  • brutos-core: The main artifact, it is needed to build applications using the Brutos native APIs.
  • brutos-annotation: Optional artifact that allows building applications using annotations. This artifact depends on the brutos-core.
  • brutos-web: Optional artifact that allows building web applications. This artifact depends on the brutos-core.
  • The official repository is www.brutosframework.com.br/maven/2.

    How to configure?

    Register the listener in web.xml

    Register the filter in web.xml

    Attention: If you are using a container that supports the Servlet 3.0 specification, the registration of ContextLoadListener and DispatcherServlet or BrutosRequestFilter are not necessary. They will be automatically registered.

    Register the artifacts in pom.xml

    Create the file brutos-config.xml in /WEB-INF.

    Creating a simple controller

    URI mapping:

    Controller

    Defining the controller path

    URI mapping:

    Controller

    Defining the action path

    URI mapping:

    Controller

    Defining the action strategy

    URI mapping:

    Controller

    The Detached action strategy

    URI mapping:

    Controller

    The Hierarchy action strategy

    URI mapping:

    Controller

    The Parameter action strategy

    URI mapping:

    Controller

    Defining the default action

    URI mapping:

    Controller

    Defining the abstract action

    URI mapping:

    Controller

    Using URI template

    URI mapping:

    Controller

    File upload

    Form

    Controller

    File download

    Controller

    Mounting the result action

    Controller

    Creating a simple interceptor

    Interceptor

    Controller

    Creating a simple interceptor stack

    Interceptor A

    Interceptor B

    Controller

    Handling exceptions

    URI mapping

    Controller

    Specifying handling exception

    URI mapping

    Controller

    Action

    URI mapping

    Controller

    Simple bean mapping

    Form

    Bean

    Controller

    Defining the property scope

    Bean

    Defining the property name

    Form

    Bean

    Defining the bean constructor

    Bean

    Defining the target class

    Controller

    Collection mapping

    Form

    Bean

    Bean

    Map

    Form

    Bean

    Defining tha action view

    URI mapping

    Controller

    Using Bean Validator

    Action

    Action

    Controller

    Controller

    Bean

    Bean

    Bean

    Complex form and mixing form and session.

    Form

    Bean

    Bean

    Controller

    Polymorphic Mapping

    Mapping a polymorphic action parameter

    Mapping a polymorphic collection

    Mapping a polymorphic map

    Mapping a polymorphic property

    References

    Brutos Framework Wikipedia