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.

Slides:



Advertisements
Similar presentations
Copyright © 2001 Qusay H. Mahmoud JavaBeans An introduction to component-based development in general Introduction to JavaBeans – Java components – client-side.
Advertisements

Component Oriented Programming 1 Chapter 2 Theory of Components.
Objectives:1. Archiving and Packaging Java Code 2. The jar Program 3. Example Applet JAR Files.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Java Beans & Serialization CS-328 Dick Steflik. Java Beans Java based component technology –originally developed to provide java with a component technology.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
JavaBeans introduction Klaus-Peter Heidrich for the University of Karlstad Inst. for Information Technology Dept. of Computer Science.
Objectives:1. Archiving and Packaging Java Code 2. The jar Program JAR Files.
JavaBeans A component architecture. What is JavaBeans? NC World (New Computing) Dictionary: JavaBeans n. 1. JavaSoft technology. 2. Component object model.
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.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
M.Sc. Course, Dept. of Informatics and Telecommunications, University of Athens S.Hadjiefthymiades “Web Application Servers” Basics on WAS WAS are necessary.
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.  Java offers software component development through java Beans  Java Beans are based on a software component model for java.  The model.
Java Beans Component Technology Integrated, Visual Development Environments Reusable Platform-Independent Modular.
Component-Based Software Engineering Introduction to Java Beans Paul Krause and Sotiris Moschoyiannis.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
Java Beans.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
An Introduction to Visual Basic
Using JavaBeans and Custom Tags in JSP Lesson 3B / Slide 1 of 37 J2EE Web Components Pre-assessment Questions 1.The _____________ attribute of a JSP page.
Enterprise Java Beans Part I Kyungmin Cho 2001/04/10.
IE 411/511: Visual Programming for Industrial Applications
Deploying Java applications as JAR files SE-2030 Dr. Rob Hasker 1 Based on material by Dr. Mark L. Hornick.
Last update October 18, 2004 Advanced Programming 2004 Java Beans.
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.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Comparing JavaBeans and OSGi Towards an Integration of Two Complementary Component Models HUMBERTO CERVANTES JEAN-MARIE FAVRE 09/02.
Webcommerce Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich.
SUSE Linux Enterprise Desktop Administration Chapter 6 Manage Software.
AIP Backup & Restore Sunita Barve NCRA, Pune. AIP The latest version of DSpace 1.7.0, supports backup and restore of all its contents as a set of AIP.
Java Programming: Advanced Topics 1 JavaBeans Chapter 8.
SWE 316: Software Design and Architecture Objectives Lecture # 18 Introduction to Components SWE 316: Software Design and Architecture To learn:  benefits.
Components Components are specialized self contained Software entities that can be replicated, Customized and inserted into applications. Components come.
Java Bean Definition “A Java Bean is a reusable software component that can be manipulated visually in a builder tool.”
Chapter 2 – Introduction to the Visual Studio .NET IDE
Introduction to Java Beans CIS 421 Web-based Java Programming.
First Bean Compose SimpleBean Demo Simple Bean Discuss Manifest and Jar Add Properties to SimpleBean.
First Bean Compose SimpleBean Demo Simple Bean Discuss Manifest and Jar Add Properties to SimpleBean.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
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.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Jar Files The Basics. 2 Outline Create a Jar Viewing the Contents of a JAR File Extracting the Contents of a JAR File Modifying a Manifest File Running.
Introduction to Software Components: the JavaBeans specs Babak Esfandiari.
Java Programming: Advanced Topics1 Introduction to Advanced Java Programming Chapter 1.
Java Beans THETOPPERSWAY.COM. Contents What is a Java Bean? Advantages Properties Bean Developers Kit (BDK) What makes Bean possible? Support for Java.
Splunk Enterprise Instructor: Summer Partain 3 Day Course.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
Chapter 2: The Visual Studio .NET Development Environment
Working in the Forms Developer Environment
Introduction to Advanced Java Programming
Chapter 2 – Introduction to the Visual Studio .NET IDE
Java Beans Sagun Dhakhwa.
JAR Files Objectives: 1. Archiving and Packaging Java Code
Understanding and Creating Jar files in Java
Reusability 11/29/2018© 2006 ITT Educational Services Inc.
Pre-assessment Questions
Knowledge Byte In this section, you will learn about:
Enterprise Java Beans.
Java Programming: Advanced Topics
Presentation transcript:

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 developers to write reusable components once and run them anywhere - benefiting from the platform-independent power of Java. n Beans may be manipulated in a visual builder tool and composed together into applications. A Bean is any Java class which adheres to certain property and event interface conventions. n The Beans Development Kit (BDK) provides support for the JavaBeans APIs and a test container (the “BeanBox” to test Bean behavior),

Network Computing: Java Beans n JavaBeans Network Component Computing Model

Java Beans in the Java Enterprise Architecture

Java Beans: Caracteristic features n Introspection: Enables a builder tool to analyze how a bean works. n Customization: Enables the developer of a Bean component to customize the appearance and behavior of a Bean. n Events: Enables beans to fire events and informing builder tools about the events they can fire and the events they can handle. n Properties:Supports the customization mentioned above. n Persistence: Enables developers to customize Beans, and then retrieve those Beans later, with customized features intact.

Java Beans: Create a Java Bean n 1. Create a Bean (jar) file jar cfm FancyButton.jar \ FancyButton.mf FancyButton.class FancyButton.gif FancyButton.au (FancyButton.mf: Manifest-Version: 1.0 Name: FancyButton.class Java-Bean: True) n 2. Copy the Bean file to C:\BDK1.0\jars n 3. Test the Bean in the BeanBox.

Java Beans: JAR Files n A JAR file is a convenient way of packaging together a set of class files and any associated GIF images, data files, or other resource files. n A JAR file consists of a normal ZIP format file, plus an optional manifest file describing the JAR contents. n You can use the JDK 1.1 jar command to create and read JAR files. n Manifest file: Each JAR file may contest a manifest file describing the contents of the JAR file.

Java Beans: JAR Files n The jar command The jar command is provided as part of JDK 1.1. It allows you to either create a JAR file or to extract the content of a jar file. n The jar command syntax is: jar [ctxvfm] [jar-file] [manifest-file] files … Option flags are: c create new archive t list table of contents for archive x extract named (or all) files from archive v generate verbose output on standard error f specify JAR file name m include manifest information from specified manifest file If any file is a directory then it is processed recursively.

Java Beans: BeanBox n The BeanBox is a very simple test container. It allows you to try out beans. n The BeanBox allows you to: n drop beans onto a composition window n resize and move beans around n edit the exported properties of a bean n run a customizer to configure a bean n connect a bean event source to an event handler method n connect together bound properties on different beans n save and restore sets of beans n get an introspection report on a bean n add new beans from JAR files

Java Beans: Create an Application using Beans n 1. Run BeanBox java sun.beanbox.BeanBoxFrameset (CLASSPATH=%CLASSPATH%;C:\JavaBdk1.0\beanbox\CLASSES) n 2. Create an instance of Juggler bean and two instance of OurButton beans. (using Toolbox) Rename the button label (using PropertySheet) n 3. Select the button bean and connected to the Juggler bean. (Edit->event->action->actionPerform->Click on the Juggler- >start/stop method in EventTargetDialog) n 4. Save the application (File->save)

Java BeanBox