JavaBeans A component architecture. What is JavaBeans? NC World (New Computing) Dictionary: JavaBeans n. 1. JavaSoft technology. 2. Component object model.

Slides:



Advertisements
Similar presentations
DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Advertisements

COMBASE: strategic content management system Soft Format, 2006.
Copyright © 2001 Qusay H. Mahmoud JavaBeans An introduction to component-based development in general Introduction to JavaBeans – Java components – client-side.
Database Systems: Design, Implementation, and Management Tenth Edition
Microsoft Excel 2010 ® ® Tutorial 6: Managing Multiple Worksheets and Workbooks.
Miscellaneous Windows 2000 Desktop Features Windows 2000 Intermediate.
What is a Programming Language? The computer operates using binary numbers. The computer only knows about 1’s and 0’s. Humans can also use 1’s and 0’s,
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
JavaBeans introduction Klaus-Peter Heidrich for the University of Karlstad Inst. for Information Technology Dept. of Computer Science.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
By Dr. Jiang B. Liu 12. The Java Beans. Java Beans n JavaBeans is a portable, platform-independent software component model written in Java. It enables.
JAVA BEANS By Madhuri Kakumanu. What is a Java Bean? “ A Java Bean is a reusable software component that can be visually manipulated in builder tools.”
Software Engineering Module 1 -Components Teaching unit 3 – Advanced development Ernesto Damiani Free University of Bozen - Bolzano Lesson 2 – Components.
Copyright 2003 The McGraw-Hill Companies, Inc CHAPTER Application Software computing ESSENTIALS    
Nikolaos Korfiatis The Java 2 Enterprise Edition Platform Dept. of Management & Technology-Athens University of Economics and Business Java 2 Platform.
M.Sc. Course, Dept. of Informatics and Telecommunications, University of Athens S.Hadjiefthymiades “Web Application Servers” Basics on WAS WAS are necessary.
OOP Week 7 1 OOP in Java -- Week 7 VAJ GUI Builder (VCE) Reading Budd Ch 14, 15 Asst LaunchAuction –due Thu Nov 15 10am –demo in lab Asst Case Study –Design.
Tutorial 11: Connecting to External Data
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Introducing JavaBeans Lesson 2A / Slide 1 of 30 JDBC and JavaBeans Pre-assessment Questions 1.Which of the given symbols is used as a placeholder for PreparedStatement.
Introducing JavaBeans Identify the features of a JavaBean Create and add a bean to an application Manipulate bean properties using accessor and mutator.
Java Beans Component Technology Integrated, Visual Development Environments Reusable Platform-Independent Modular.
Emerging Platform#4: Android Bina Ramamurthy.  Android is an Operating system.  Android is an emerging platform for mobile devices.  Initially developed.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Component-Based Software Engineering Introduction to Java Beans Paul Krause and Sotiris Moschoyiannis.
MVC pattern and implementation in java
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Cizer.NET Reporting Forum for Business Intelligence Copyright © 2005 Cizer Software OR
Java Beans.
Talarian Proprietary Talarian’s New JMS Offering and Sun Partnership.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
At A Glance VOLT is a freeware, platform independent tool set that coordinates cross-mission observation planning and scheduling among one or more space.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
11 MANAGING AND DISTRIBUTING SOFTWARE BY USING GROUP POLICY Chapter 5.
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
JavaBeans Components. To understand JavaBeans…  Proficient experience with the Java language required  Knowledge of classes and interfaces  Object-Oriented.
TM Introduction to JavaBeans™ Dimitrios Psarros Questra Consulting (716) x225.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
Department of Electrical and Computer Engineering The Tektronix MSO4000 series of oscilloscopes are mixed-signal oscilloscopes that contain both digital.
Comparing JavaBeans and OSGi Towards an Integration of Two Complementary Component Models HUMBERTO CERVANTES JEAN-MARIE FAVRE 09/02.
Computer Emergency Notification System (CENS)
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Java Bean Definition “A Java Bean is a reusable software component that can be manipulated visually in a builder tool.”
Introduction to Java Beans CIS 421 Web-based Java Programming.
Java GUI building approaches Aleksandar Kartelj Faculty of Mathematics, Belgrade 11 th Workshop “Software Engineering Education and.
C OMPUTING E SSENTIALS Timothy J. O’Leary Linda I. O’Leary Presentations by: Fred Bounds.
Celluloid An interactive media sequencing language.
Java Beans. Definitions A reusable software component that can be manipulated visually in a ‘builder tool’. (from JavaBean Specification) The JavaBeans.
Intelligent Agent Framework1 From Chapter 7 of Constructing Intelligent Agents with Java.
Advanced Java Session 4 New York University School of Continuing and Professional Studies.
Software Engineering Chapter: Computer Aided Software Engineering 1 Chapter : Computer Aided Software Engineering.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Dispatching Java agents to user for data extraction from third party web sites Alex Roque F.I.U. HPDRC.
What is Java? Object Oriented Programming Language Sun Microsystems “Write Once, Run Everywhere” Bytecode and Virtual Machine Java Platform (Java VM and.
Introduction to Software Components: the JavaBeans specs Babak Esfandiari.
Java Beans THETOPPERSWAY.COM. Contents What is a Java Bean? Advantages Properties Bean Developers Kit (BDK) What makes Bean possible? Support for Java.
Application Sharing Bhavesh Amin Casey Miller Casey Miller Ajay Patel Ajay Patel Bhavesh Thakker Bhavesh Thakker.
Introduction to Advanced Java Programming
Java Beans Sagun Dhakhwa.
Distribution and components
Hands-on Introduction to Visual Basic .NET
An Introduction to Software Architecture
Component-Based Software Engineering
Seminarium on Component-based Software Engineering
Presentation transcript:

JavaBeans A component architecture

What is JavaBeans? NC World (New Computing) Dictionary: JavaBeans n. 1. JavaSoft technology. 2. Component object model for creating modular applications (see object computing) object computing n. 1. A system delivers modular programming to the computing mainstream (see Java) Java n. 1. A type of object computing system that allow you to create a variety of objects The dream of JavaBeans is ….. Development of software by building blocks through drag & drop

What is JavaBeans? A Java Bean is a reusable software component that can be manipulated visually in a builder tool JavaBeans is a portable, platform-independent component model written in the Java programming language, developed in collaboration with industry leaders. It enables developers to write reusable components once and run them anywhere -- benefiting from the platform- independent power of Java technology. The goal of JavaBeans is to create a system whereby application developers can take a set of beans from a stock library and wire them together to make a full application

Features of JavaBeans Support for introspection  so that a builder tool can analyze how a bean works Support for customization  so that when using an application builder a user can customize the appearance and behavior of a bean Support for events  as a simple communication metaphor than can be used to connect up beans Support for properties  both for customization and for programmatic use Support for persistence  so that a bean can be customized in an application builder and then have its customized state saved away and reloaded later

Persistent Storage Purpose: To use existing data formats and plug into OLE or OpenDoc documents (e.g., Excel doc inside a Word doc) To be “trivial” for the common case of a tiny Bean (by saving its internal state) Solutions Externalization: provides a Bean with full control over the resulting data layout. Serialization: provides an automatic way of storing out and restoring the internal state of a collection of Java objects All bean must support either Serialization or Externalization

Events A mechanism for propagating state change notifications between a source object and one or more target listener objects

Event Adaptors Motivation: When additional behavior is required during event delivery, an intermediary “event” adaptor” class may be defined, and interposed between an event source and the real event listener.

Examples of Event Adaptors Implementing an event queuing mechanism between sources and listeners Acting as a filter Demultiplexing multiple event sources onto a single event listener Acting as a generic “wiring manager” between sources and listeners

Properties Discrete, named attributes of a Java Bean that can affect its appearance or its behavior E.g., “label” in a GUI button to represent the displayed text Properties show up in a number of ways: through scripting environments (like object fields, e.g., “b.Label=foo”) by programming through getter and setter methods in a property sheet for a user to edit when a component is customized Typically a bean’s properties will be persistent

Introspection A process of understanding which properties, events, and methods a Java Bean supports at runtime and in their builder environment Purpose: to avoid using any separate specification language for defining the behavior of a Java Bean. All of its behavior would be specifiable in Java Solution Approaches: Reflection: a low level mechanism to study the methods supported by a target bean Design patterns: to deduce from those methods what properties, events, and public methods are supported

Customization Ability to customize the appearance and behavior of the various beans they are using when a user is composing an application in an application builder Two ways An application builder through GUI property sheet (= property list + property editor) Wizards that guide users through the different steps of customizing a bean (for larger or complex beans)

Automated -- Using an application builder to construct an Applet 1. Buying the tools 2. Laying out the applet create a new applet and drag-and-drop beans in the application builder 3. Customizing the beans Select the button and edit the properties using the application builder 4. Connecting up the beans 5. Packaging up the applet 6. Trying it out

Manually -- Using beans in a hand- written Applet 1. Loading the tools 2. Laying out the applet - start to type in the code for a new applet (“init” method) 3. Customizing the beans - through calling on the beans’ property accessor methods (e.g., btn.setBackground(java.awt.Color.red);) 4. Connecting up the beans 5. Packaging up the applet 6. Trying it out

FAQ 1 Why are component architectures useful? Developers are turning to creating components rather than monolithic applications to free themselves from slow, expensive application development, and to build up a portable, reusable code base. This enables developers to quickly attack new market opportunities, new joint development opportunities, and new ways to sell smaller packages of software. * source:

FAQ 2 Is JavaBeans a complete component architecture? JavaBeans is a complete component model. It supports the standard component architecture features of properties, events, methods, and persistence. In addition, JavaBeans provides support for introspection (to allow automatic analysis of a JavaBeans component) and customization (to make it easy to configure a JavaBeans component). * source:

FAQ 3 Are there JavaBeans components available that I can buy today? Yes. A large number of companies, both large and small, have announced their plans to deliver JavaBeans-based products including Corel, EnterpriseSoft, Gemstone, IBM, JScape, K&A Software, KL Group, Lotus Development, Novell, ProtoView Development, Rogue Wave, and Stingray Software among many others. Contact these companies for information on product availability. Many more companies have adopted the JavaBeans component model, take a look at the JavaBeans Directory.Corel EnterpriseSoftGemstoneIBMJScapeK&A SoftwareKL GroupLotus DevelopmentNovell ProtoView DevelopmentRogue Wave Stingray SoftwareJavaBeans Directory * source:

FAQ 4 What are the security implications for downloading Beans over the Internet? JavaBeans does not add any security features to the Java platform. Rather, JavaBeans components have full access to the broad range of security features that are part of the Java platform. JavaBeans components can be used to build a range of different kinds of solutions from full- fledged Java desktop applications to web-based Applets. * source:

FAQ 5 Does the 100% Pure Java program ensure compatibility and interoperability between Beans? The 100% Pure Java Initiative is a program designed specifically for developers of Java software. Sun will provide testing and marketing support specifically for JavaBeans components in the first half of * source: