Java Beans Component Technology Integrated, Visual Development Environments Reusable Platform-Independent Modular.

Slides:



Advertisements
Similar presentations
TSpaces Services Suite: Automating the Development and Management of Web Services Presenter: Kevin McCurley IBM Almaden Research Center Contact: Marcus.
Advertisements

Copyright © 2001 Qusay H. Mahmoud JavaBeans An introduction to component-based development in general Introduction to JavaBeans – Java components – client-side.
Component Oriented Programming 1 Chapter 2 Theory of Components.
JavaBeans: Introspection and Customization Umer Farooq CS6704: Design Patterns & Component FrameworksJanuary 30, 2002.
Java Beans & Serialization CS-328 Dick Steflik. Java Beans Java based component technology –originally developed to provide java with a component technology.
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.
JavaBeans A component architecture. What is JavaBeans? NC World (New Computing) Dictionary: JavaBeans n. 1. JavaSoft technology. 2. Component object model.
Object-oriented Programming Concepts
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.
WebDynpro for ABAP Short introduction.
M.Sc. Course, Dept. of Informatics and Telecommunications, University of Athens S.Hadjiefthymiades “Web Application Servers” Basics on WAS WAS are necessary.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
CS0007: Introduction to Computer Programming Setting Up Java.
Java Course Outline Kumar Harshit, USW. Course Description Teaches students to program using the Java programming language with the help of the Netbeans.
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.
UNIT-V The MVC architecture and Struts Framework.
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.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 8 Slide 1 Software Prototyping l Rapid software development to validate requirements.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
Java Beans.
M1G Introduction to Programming 2 4. Enhancing a class:Room.
Microsoft Visual Basic 2005: Reloaded Second Edition
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
Chapter 10 Introduction to Components. Process Phases Discussed in This Chapter Requirements Analysis Design Implementation ArchitectureFramework Detailed.
Deutsches Elektronen-Synchrotron DESY Helmholtz Association of German Research Centres Hamburg, Germany The European X-Ray Laser Project.
Introduction to J2EE Architecture Portions by Kunal Mehta.
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.
Comparing JavaBeans and OSGi Towards an Integration of Two Complementary Component Models HUMBERTO CERVANTES JEAN-MARIE FAVRE 09/02.
Lecture Set 11 Creating and Using Classes Part B – Class Features – Constructors, Methods, Fields, Properties, Shared Data.
Component frameworks Roy Kensmil. Historical trens in software development. ABSTRACT INTERACTIONS COMPONENT BUS COMPONENT GLUE THIRD-PARTY BINDING.
소프트웨어공학 강좌 1 Chap 7. Software Prototyping - Rapid software development to validate requirements -
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.”
Introduction to Java Beans CIS 421 Web-based Java Programming.
Introduction to Java 120 February 2004Sifei HE © 2004 Introduction to Java for CS381, EE4.Web By Sifei HE Department of Computing.
First Bean Compose SimpleBean Demo Simple Bean Discuss Manifest and Jar Add Properties to SimpleBean.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 13. Review Shared Data Software Architectures – Black board Style architecture.
Software Prototyping Rapid software development to validate requirements.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 27 JavaBeans and.
Java Beans. Definitions A reusable software component that can be manipulated visually in a ‘builder tool’. (from JavaBean Specification) The JavaBeans.
Advanced Java Session 4 New York University School of Continuing and Professional Studies.
Object-Oriented Programming © 2013 Goodrich, Tamassia, Goldwasser1Object-Oriented Programming.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Introduction to Object-Oriented Programming Lesson 2.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
Introduction to Software Components: the JavaBeans specs Babak Esfandiari.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 32 JavaBeans and Bean.
Lorenz: Visitor Beans: An Aspect-Oriented Pattern Aspect-oriented pattern: describes a solution to a tangling problem in a particular context.
Java Beans THETOPPERSWAY.COM. Contents What is a Java Bean? Advantages Properties Bean Developers Kit (BDK) What makes Bean possible? Support for Java.
Java Beans - Basics CIS 421 Web-based Java Programming.
Model View ViewModel Architecture. MVVM Architecture components.
Object Oriented Programming
Before You Begin Nahla Abuel-ola /WIT.
Java Beans Sagun Dhakhwa.
Distribution and components
Object-Oriented Programming
JavaServer Faces: The Fundamentals
Component-Based Software Engineering
Java Programming: Advanced Topics
Presentation transcript:

Java Beans Component Technology Integrated, Visual Development Environments Reusable Platform-Independent Modular

Java Bean Concepts Visual Composition or Programming Components expose their features (public methods and events) to builder tools Features adhere to specific design patterns Forte or NetBeans for IDE

Component Model Building Block Approach to Software Development Components are self-contained elements of software Dynamic Control Assembled to form Applications Interact according to rules and guidelines

Component Characteristics Containment Discovery and Registration Events Persistance Visual Presentation

Containment Implicit in Model is concept of container in which components interact Containers can be components

Discovery and Registration Java has built in mechanisms for class and interface discovery Used to locate a component at runtime Used to determine supported interface for use by other components Reflection API

Advantages Late binding allows components and applications to be developed independently Interface define contract between component and application Application does not include component in order to use it at runtime. Just has to know what it is capable of doing

Feature Discovery Discovery of Features (properties, methods, events) through INTROSPECTION Design Patterns when naming features. Reflection API ( Introspector class) Feature information in a Bean Information class

Java Runtime JRE - Java Runtime Environment Runtime portion of development kit Contains core API Maintains Class object for each class Represents or Reflects class Reflection API invokes methods on Class object

Reflection API Classes, Interfaces, and Objects in current JVM Discovery at runtime Determine Class of an Object Get Information about Class (modifiers, fields, methods, constructors, superclass) Constants and method declarations in interface

Create an instance of a class whose name is not known at runtime Get and set value of objects field, even if unknown at runtime Invoke method on an object, even if unknown at runtime Create new array, whose size and components are not known at runtime

Events Event occurs at specific point in time Events generated by actors (User, other systems, components) Components notify other Components when events take place Communication mechanism with well- defined interface

Events Events used to communicate with other Beans A bean that wants to receive notification of an event (a listener Bean) registers its interest with Bean that fires the event (a source Bean).

Persistence Beans are able to save and store state, then, restore it Object Serialization is key technology

Persistence State of the Component Persistence: Store and Restore State Components participate in containers persistence mechanism Uniform Persistance Mechanism

Visual Presentation Component itself may or may not be visual Related to container object Support Visual Programming Proceed by altering properties, managing events

Properties Properties are Bean’s behavior and appearance attributes that can be changed at design time. Properties exposed for customization Customization by Property Editors or more custom classes

Bean Development Kit BDK separate for JDK BEANBOX Documentation Examples

Introduction to BeanBox See tutorialtutorial Located in bdk\beanbox directory Shell scripts to start run.bat or run.sh Or use make facility (Unix gmake, Windows nmake)

BeanBox Three Windows Toolbox: available beans Beanbox: wire beans Properites Sheet: Properties of currently selected beans