THEORETICAL FRAMEWORK 2.1 What Is Java?

Total Page:16

File Type:pdf, Size:1020Kb

THEORETICAL FRAMEWORK 2.1 What Is Java? 4 CHAPTER II: THEORETICAL FRAMEWORK 2.1 What is Java? Java is a programming language released by Sun Microsystems in 1995, which has been acquired by Oracle in 2009. Java is intended to allow developer to create programs that are able to run across any platform that support Java Runtime Environment (JRE). Java has several Java platforms that could be used to create different type of application, such as a computer program, enterprise application, and web application. 2.2 What is Java EE? Java Enterprise Edition (EE) is a Java platform that provides an Application Programming Interface (API) and runtime environment for developing and running large-scale, multi-tiered, scalable, reliable, and secure network applications. Java EE uses Model-View-Controller (MVC) model, with ‘Beans’ as model, Java Server Page (JSP) as view, and ‘Servlet’ as controller. 2.3 Why Java? Java is one of the most popular programming language. This popularity is supported by the advantages of Java. Java is a free and open sourced programming language. It is fast, secure, reliable and also has been tested, refined, extended, and proven by a dedicated community of Java developers, architects and enthusiasts. Java is designed to enable development of portable, high-performance applications for the widest range of computing platforms possible. This allows developers to create an application that is available across heterogeneous environments and provide more services, which would boost end-user productivity, communication, 5 and collaboration, and dramatically reduce the cost of ownership of both enterprise and consumer applications. In Java EE, the application of the multi-service capabilities of Java is applied in a what is called Enterprise Java Beans (EJB). EJBs act as the model in MVC architecture of Java EE which has methods to operate with data in the database. This Beans would be used to create a web application, and reused for the development of mobile applications. In summary, the main advantages of Java are: • Write software on one platform and run it on virtually any other platform • Create programs that can run within a web browser and access available web services • Develop server-side applications for online forums, stores, polls, HTML forms processing, and more • Combine applications or services using the Java language to create highly customized applications or services • Write powerful and efficient applications for mobile phones, remote processors, microcontrollers, wireless modules, sensors, gateways, consumer products, and practically any other electronic device 2.4 What is Frameworks? In developing any application, developers tend to use frameworks to help them in developing. Framework provides generic functionality for developers that can extended based on needs by developer, thus providing application specific software. 6 Framework is a collection of software libraries/components providing a defined API. However, it contains key distinguishing features that separate them from normal libraries: • inversion of control - In a framework, unlike in libraries or normal user applications, the overall program's flow of control is not dictated by the caller, but by the framework. default behavior • A framework has a default behavior. This default behavior must actually be some useful behavior and not a series of no-ops. • extensibility - A framework can be extended by the user usually by selective overriding or specialized by user code providing specific functionality. • non-modifiable framework code - The framework code, in general, is not allowed to be modified. Users can extend the framework, but not modify its code. 2.5 What framework is available? There are a lot of frameworks exists for many programming languages, and there are also many frameworks for Java. Several of them are Spring, Grails, Play, Google Web Toolkit, JBoss, ZK, and Vaadin. 2.5.1 Spring Framework Spring framework is an open source framework for Java which can be used by any Java application. Although the framework does not impose any specific programming model, it has become popular in the Java community as an alternative to, replacement for, or even addition to the EJB. 7 2.5.2 Grails Framework Grails is an open source web application framework that uses the Groovy programming language, which is a programming language based on Java platform. It is intended to be a high-productivity framework by following the "coding by convention" paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer. (The Grails Framework, 2015) 2.5.3 Play Framework Play is an open source web application framework, written in Scala and Java, which follows the MVC architecture. It aims to optimize developer productivity by using convention over configuration, hot code reloading and display of errors in the browser. (Play Framework, 2015) 2.5.4 Google Web Toolkit Google Web Toolkit (GWT) is an open source set of tools that allows web developers to create and maintain complex JavaScript front-end applications in Java. Other than a few native libraries, everything is Java source that can be built on any supported platform. (GWT, 2016) 2.5.5 JBoss The JBoss Enterprise Application Platform (JBoss EAP) is a subscription- based/open-source Java EE-based application server runtime platform used for building, deploying, and hosting highly-transactional Java applications and services. The JBoss Enterprise Application Platform is part of the JBoss Enterprise Middleware portfolio of software. Because it is Java-based, the 8 JBoss application server operates cross-platform: usable on any operating system that supports Java. 2.5.6 ZK Framework ZK is a Java based open-source Web application framework, that enables creation of graphical user interfaces for Web applications with little required programming knowledge. With ZK, the end users get the similar interactivity and responsiveness as a desktop application, while developer have similar simplicity to that of web applications in developing. (Leading Enterprise Java Web Framework | ZK, 2015) 2.5.7 Vaadin Vaadin is an open source Web application framework for rich Internet applications. In contrast to JavaScript libraries and browser-plugin based solutions, it features a server-side architecture, which means that the majority of the logic runs on the servers. Ajax technology is used at the browser-side to ensure a rich and interactive user experience. On the client-side Vaadin is built on top of and can be extended with Google Web Toolkit. (Vaadin – User Interfae Components for business apps, 2015) 2.6 Why Maven? Apache Maven is a software project management and comprehension tool, with the primary goal to to allow a developer to comprehend the complete state of a development effort in the Shortest period of time. Maven is based on the concept of a project object model (POM) and can manage a project's build, reporting and documentation from a central piece of information. In order to attain its goal, Maven attempts to deal with several areas of concern. 9 ▪ Making the build process easy Maven eliminates the need to know details of underlying mechanism of Java EE. ▪ Providing a uniform build system Maven allows a project to build using its project object model (POM) and a set of plugins that are shared by all projects using Maven, providing a uniform build system. This helps developers to understand the build process of any projects once they understand one, which could save a lot of time navigating many projects. ▪ Providing quality project information Maven provides plenty of useful project information that is in part taken from your POM and in part generated from your project’s sources. For example, Maven can provide things like change log document created directly from source control, cross referenced sources, and dependency list. As Maven improves the information set provided will improve, all of which will be transparent to users of Maven. ▪ Providing guidelines for best practices development Maven aims to gather current principles for best practices development, and make it easy to guide a project in that direction. For example, specification, execution, and reporting of unit tests are part of the normal build cycle using Maven. Maven also aims to assist in project workflow such as release management and issue tracking and suggests some guidelines on how to layout a project’s directory structure .
Recommended publications
  • The Definitive Guide to Grails
    apress.com Graeme Rocher, Jeff Scott Brown The Definitive Guide to Grails This will be the first and only definitive book on the agile open source lightweight Grails (“Groovy on Rails” analogous to Ruby on Rails) Framework 1.0 release Written by the open source Grails project founder and lead, Graeme Rocher Emerging growth area with support from key open source lightweight projects like Spring, Hibernate, Wicket and more The rise of Ruby on Rails has signified a huge shift in how we build web applications today; it is a fantastic framework with a growing community. There is, however, space for another such framework that integrates seamlessly with Java. Thousands of companies have invested in Java, and these same companies are losing out on the benefits of a Rails–like framework. Enter Grails. Grails is not just a Rails clone. It aims to provide a Rails–like environment that is more familiar to Java developers and employs idioms that Java developers are comfortable 2nd ed., 648 p. using, making the adjustment in mentality to a dynamic framework less of a jump. The concepts within Grails, like interceptors, tag libs, and Groovy Server Pages (GSP), make those in Printed book the Java community feel right at home. Grails' foundation is on solid open source technologies Softcover such as Spring, Hibernate, and SiteMesh, which gives it even more potential in the Java space: 39,99 € | £36.99 | $46.99 Spring provides powerful inversion of control and MVC, Hibernate brings a stable, mature object [1]42,79 € (D) | 43,99 € (A) | CHF relational mapping technology with the ability to integrate with legacy systems, and SiteMesh 53,55 handles flexible layout control and page decoration.
    [Show full text]
  • Modern Web Application Frameworks
    MASARYKOVA UNIVERZITA FAKULTA INFORMATIKY Û¡¢£¤¥¦§¨ª«¬­Æ°±²³´µ·¸¹º»¼½¾¿Ý Modern Web Application Frameworks MASTER’S THESIS Bc. Jan Pater Brno, autumn 2015 Declaration Hereby I declare, that this paper is my original authorial work, which I have worked out by my own. All sources, references and literature used or ex- cerpted during elaboration of this work are properly cited and listed in complete reference to the due source. Bc. Jan Pater Advisor: doc. RNDr. Petr Sojka, Ph.D. i Abstract The aim of this paper was the analysis of major web application frameworks and the design and implementation of applications for website content ma- nagement of Laboratory of Multimedia Electronic Applications and Film festival organized by Faculty of Informatics. The paper introduces readers into web application development problematic and focuses on characte- ristics and specifics of ten selected modern web application frameworks, which were described and compared on the basis of relevant criteria. Practi- cal part of the paper includes the selection of a suitable framework for im- plementation of both applications and describes their design, development process and deployment within the laboratory. ii Keywords Web application, Framework, PHP,Java, Ruby, Python, Laravel, Nette, Phal- con, Rails, Padrino, Django, Flask, Grails, Vaadin, Play, LEMMA, Film fes- tival iii Acknowledgement I would like to show my gratitude to my supervisor doc. RNDr. Petr So- jka, Ph.D. for his advice and comments on this thesis as well as to RNDr. Lukáš Hejtmánek, Ph.D. for his assistance with application deployment and server setup. Many thanks also go to OndˇrejTom for his valuable help and advice during application development.
    [Show full text]
  • Alfresco ACSCE-5X Exam
    Alfresco ACSCE-5X Exam Volume: 60 Questions Question: 1 What is the class.org.alfresco.model.ContentModel used for? A. Transforming document content into a different format. B. Validating the content of the document follows a certain template. C. Referencing out of the box content model types in your code. D. Trigger automatic metadata extraction from the content. E. Moving content in the repository between folders. Answer: C Question: 2 When would you consider developing your custom server code in Java in place of JavaScript? (Choose three.) A. When a web script needs to be executed inside a transaction. B. When I need to execute part of my code as system user. C. When developing a custom scheduled process. D. When developing a content rule. E. When developing a behavior/policy. Answer: B,C,D Question: 3 Which file is required in order for an AMP file to be valid? A. module.properties B. service-context.xml Leading the way in IT testing and certification tools, www.examkiller.net Alfresco ACSCE-5X Exam C. file-mapping.properties D. web.xml Answer: A Question: 4 An Alfresco Webscript is called via a POST request to the URL /example/mycontent/item1, relative to the Alfresco Content Services REST API base URL. Based on RESTful principles and standards, what will be the result of this call? A. The existing resource ‘item1’ is updated. B. The existing resource ‘item1’ is updated. C. The content of the resource ‘item1’ is returned to the user. D. A new resource ‘item1’ is added. Answer: D Question: 5 How can we modify what data is shown in each row of the Alfresco Share document library, using the supported extension points? A.
    [Show full text]
  • Cross-Domain Embedding for Vaadin Applications
    Cross-Domain Embedding for Vaadin Applications Janne Lautamäki and Tommi Mikkonen Department of Software Systems, Tampere University of Technology, Korkeakoulunkatu 1, FI-33720 Tampere, Finland {janne.lautamaki,tommi.mikkonen}@tut.fi Abstract. Although the design goals of the browser were originally not at running applications or at displaying a number of small widgets on a single web page, today many web pages considerably benefit from being able to host small embedded applications as components. While the web is full such applications, they cannot be easily reused because of the same origin policy restrictions that were introduced to protect web content from potentially malicious use. In this paper, we describe a generic design for cross domain embedding of web applications in a fashion that enables loading of applications from different domains as well as communication between the client and server. As the proof- of-concept implementation environment, we use web development framework Vaadin, a Google Web Toolkit based system that uses Java for application development. Keywords: Vaadin, JSONP, cross-domain applications. 1 Introduction Web applications – systems that resemble desktop applications in their behavior but are run inside the browser – are becoming increasingly common. The current trend is that web pages have dynamic components side by side with the traditional web content, such as static text and images. These dynamic components can be small widgets that for instance display current weather information or stock exchange data, or even full-fledged web applications that offer a service related to the theme of the web page where they are located [1]. Creating dynamic web pages is much more complex than building plain old web pages.
    [Show full text]
  • Technology MX4 Technology MX4, Based in Canada, Is a Company That Works in the Field of Optimization Technologies for Complex Problems
    Technology MX4 Technology MX4, based in Canada, is a company that works in the field of optimization technologies for complex problems. About MX4 Technology MX4 is specialized in the development of web applications for K12 schools, which also includes providing training and user support. ZK x MX4 ZK is used in our main product called Trapeze School for the automatic creation of school timetables. The SAAS application targets K12 schools and can handle multiple school configuration and constraints. This tool is offered in 2 languages (French and English) and is being used by more than 150 schools across Quebec. “Simplicity (AJAX) and rapid The team is composed of 5 engineers; 1 for the User interface using development.” ZK and the others are working on the backend micro-services and AI engine. We started the project in 2011 and we have an ongoing delivery process to offer new features every 6 months. We use the following technologies in the project: ZK, Hibernate, Tomcat, Rest, Kafka, ActiveMQ and PostgreSQL. Why ZK We evaluated developing our web application in JSP and we built a small, but complete application that includes our principal needs using 3 different frameworks: OpenXava, Vaadin and ZK. ZK was the easiest and fastest one. ZK was the easiest to use in the sense that it hides and handles the AJAX part, so you don’t have to worry about passing information between the server and the client. As a result it saves the developing ZK – THE SIMPLEST WAY TO MAKE WEB APPLICATIONS RICH 2 CASE STUDY time a lot so we decide to go with ZK.
    [Show full text]
  • Programming Technologies for the Development of Web-Based Platform for Digital Psychological Tools
    (IJACSA) International Journal of Advanced Computer Science and Applications, Vol. 9, No. 8, 2018 Programming Technologies for the Development of Web-Based Platform for Digital Psychological Tools Evgeny Nikulchev1, Dmitry Ilin2 Pavel Kolyasnikov3 Ilya Zakharov5, Sergey Malykh6 4 MIREA – Russian Technological Vladimir Belov Psychological Institute of Russian University & Russian Academy Russian Academy Science Academy of Education Science, Moscow, Russia Moscow, Russia Moscow, Russia Abstract—The choice of the tools and programming In addition, large accumulated data sets can become the technologies for information systems creation is relevant. For basis for machine learning mechanisms and other approaches every projected system, it is necessary to define a number of using artificial intelligence. Accumulation of data from criteria for development environment, used libraries and population studies into a single system can allow a technologies. The paper describes the choice of technological breakthrough in the development of systems for automated solutions using the example of the developed web-based platform intellectual analysis of behavior data. of the Russian Academy of Education. This platform is used to provide information support for the activities of psychologists in The issue of selecting methodological tools for online and their research (including population and longitudinal offline research includes several items. researches). There are following system features: large scale and significant amount of developing time that needs implementation First, any selection presupposes the existence of generally and ensuring the guaranteed computing reliability of a wide well-defined criteria, on the basis of which a decision can be range of digital tools used in psychological research; ensuring made to include or not to include techniques in the final functioning in different environments when conducting mass toolkit.
    [Show full text]
  • Play Framework One Web Framework to Rule Them All
    Play Framework One Web Framework to rule them all Felix Müller Agenda Yet another web framework? Introduction for Java devs Demo Summary Yet another web framework? Yet another web framework? Why do we need another web framework? Existing solutions: Servlets, Ruby on Rails, Grails, Django, node.js Yet another web framework? Threaded Evented 1 thread per 1 thread per cpu request core threads may block threads shall never during request block processing Yet another web framework? Threaded Evented Servlets Node.js Ruby on Rails Play Framework Grails Django Yet another web framework? Play is completely asynchronous horizontally scalable out of the box and a lot other goodies... Introduction for Java devs Play Framework MVC pattern Scala and Java API asset compiler for CoffeeScript and LESS + Google Closure Compiler + require.js Play Console play new <appName> play compile|test|run|debug play ~compile|test|run Application structure app directory contains source code, templates and assets standard packages based on MVC: app/controllers app/models app/views Application structure public directory is default for assets as css and javascript files public/stylesheets public/javascripts public/images served directly by web server Routes configuration contains url to controller mapping statically typed pattern: <HTTP method> <url> <controller> Controllers import play.mvc.*; public class Application extends Controller { public static Result index() { return ok("It works!"); } } Templates built-in Scala based template engine
    [Show full text]
  • Applicazioni Web in Groovy E Java
    Università degli Studi di Padova Applicazioni web in Groovy e Java Laurea Magistrale Laureando: Davide Costa Relatore: Prof. Giorgio Clemente Dipartimento di Ingegneria dell’Informazione Anno Accademico 2011-2012 Indice INTRODUZIONE ........................................................................................... 1 1 GROOVY ............................................................................................... 5 1.1 Introduzione a Groovy ................................................................................. 5 1.2 Groovy Ver 1.8 (stable).............................................................................. 10 1.3 Installare Groovy ........................................................................................ 14 1.3.1 Installazione da codice sorgente......................................................... 15 1.4 L’interprete Groovy e groovyConsole ....................................................... 16 1.5 Esempi ........................................................................................................ 17 2 NETBEANS .......................................................................................... 20 2.1 Introduzione a Netbeans ............................................................................. 20 2.2 Installare Netbeans 7.1 ............................................................................... 22 2.3 “Hello World!” in Netbeans ....................................................................... 23 3 ARCHITETTURA MVC .......................................................................
    [Show full text]
  • Play Framework Documentation
    Play framework documentation Welcome to the play framework documentation. This documentation is intended for the 1.1 release and may significantly differs from previous versions of the framework. Check the version 1.1 release notes. The 1.1 branch is in active development. Getting started Your first steps with Play and your first 5 minutes of fun. 1. Play framework overview 2. Watch the screencast 3. Five cool things you can do with Play 4. Usability - details matter as much as features 5. Frequently Asked Questions 6. Installation guide 7. Your first application - the 'Hello World' tutorial 8. Set up your preferred IDE 9. Sample applications 10. Live coding script - to practice, and impress your colleagues with Tutorial - Play guide, a real world app step-by-step Learn Play by coding 'Yet Another Blog Engine', from start to finish. Each chapter will be a chance to learn one more cool Play feature. 1. Starting up the project 2. A first iteration of the data model 3. Building the first screen 4. The comments page 5. Setting up a Captcha 6. Add tagging support 7. A basic admin area using CRUD 8. Adding authentication 9. Creating a custom editor area 10. Completing the application tests 11. Preparing for production 12. Internationalisation and localisation The essential documentation Generated with playframework pdf module. Page 1/264 Everything you need to know about Play. 1. Main concepts i. The MVC application model ii. A request life cycle iii. Application layout & organization iv. Development lifecycle 2. HTTP routing i. The routes file syntax ii. Routes priority iii.
    [Show full text]
  • Vaadin Custom Training
    STORY AND PHILOSOPHY Software is eating the world and what most of us see of it is the user interface. The user interface has become the key component of how the users experience the business behind it. Competition is lost or won due to user experience. Simplicity is king and the users get frustrated by anything ugly, slow or not working on the device they happen to use at the time. We at Vaadin fight for simplicity and invite everyone to join this fight. Together we want to build a user interface that puts a smile on the user’s face. Vaadin is the technology that empowers developers to build the best web-apps for business purposes. Our priority over everything else is developer productivity because we believe that by simplifying the developer experience and saving the developer’s time, they are best able to focus on building great user interfaces. Our brand is what we want everyone to think about us. When everyone - both us and the people around us - have a consistent understanding of what Vaadin is and what we Custom Training stand for, it enables that image to spread and amplify. This book defines what we want that image to be. It defines what the Vaadin brand is. I hope that You are as excited and proud of living and breathing the Vaadin brand as PRESENTER I am. You are the one who is shaping what everyone thinks about Vaadin - using this brand as a tool and a guideline every day. Sami Kaksonen Let’s fight for simplicity for both the users and the developers! [email protected] Joonas Lehtinen Founder & CEO Vaadin INTRODUCTION 5 TABLE
    [Show full text]
  • Choosing the Right Front-End Framework
    Choosing the right front-end framework Janko Ulaga, Tomislav Naki ć-Alfirevi ć May 2013 Introduction - needed to upgrade our UI - choosing the right framework: a challenge! - currently around 30 Java frameworks - not a simple process, many different criteria to consider * certain frameworks suggest or encourage certain technologies...not so good, right? UI prototype description - monitor & control system - table showing real time device state changes - graph showing parameter updates - form to set device parameter values Criteria - technical vs. business - in-house knowledge is great, but... - analyze & consider everything: in-house procedures, development, HTML5, licensing, testing, integration... Criteria - JSF & Vaadin for Java - ExtJS & AngularJS for JavaScript Vaadin Java Server Angular JS ExtJS Faces Popularity(# of 246,000 1,220,000 110,000 1,000,000 Google searches/ month) Learning( # of ~20 ~220 ~50 ~40 books on Amazon) Requires No but some No No Yes development components do license Java Server Faces Basics - component-driven UI design model, XML templates - requests processed by the FacesServlet which does all the heavy lifting - convention over configuration - inversion of control *great for rapid development, but lacks “shiny” components Which JSF framework? - popularity, showcases, extensions... - we chose Primefaces Vaadin Basics - code in Java - uses GWT for web page rendering - extensible components set - server side application logic Implementation - Primefaces - environment setup - easy design: one view/action subset – one backing bean - great to use with Twitter Bootstrap - easy to combine JavaScript *push component cannot connect to remote URL - quick solution with PE Extensions - high network traffic Implementation - Vaadin - environment setup - two additional plugins, charts and push - nice API - works great on all browsers - no need for JavaScript *not so good performance-wise, bad choice for real- time apps.
    [Show full text]
  • Pragmatic Bookshelf Groovy Recipes.Pdf
    What readers are saying about Groovy Recipes This is the go-to guide for turning Groovy into every Java developer’s perfect utility knife. Whether you need to quickly parse an Atom feed, serve up an Excel spreadsheet from your Grails app, or create a tar- ball on the fly, this book will show you how. In true Groovy style, Scott does away with all unnecessary ceremony and gets right down to business. In almost every section, the very first thing you see is code— the recipe for solving the problem at hand—and if you want to stick around for the clear and informative explanation, well, that’s strictly optional. Jason Rudolph Author, Getting Started with Grails Groovy Recipes is the book that I want to have in reach whenever I work in my Groovy bakery. Nothing gets you faster up to speed than having well-thought-out recipes for your everyday tasks. Dierk König Canoo Engineering AG The format of this book is ideal for rapidly obtaining crucial informa- tion just when you need it. An agile text for agile development! Joe McTee Software Engineer, JEKLsoft Groovy is on my radar as one of the next big things in Java, and this book gets you up to speed quickly with lots of great code examples. David Geary Author, Clarity Training, Inc. Scott does a fantastic job of presenting many little nuggets of “groovi- ness” here in a way that is easy to read and follow. There is plenty here for Groovy newcomers and veterans alike. Thanks, Scott! Jeff Brown Member of the Groovy and Grails Core Development Teams Adding Groovy to Java is like adding rocket fuel to your SUV.
    [Show full text]