Download Java Beans - WordPress.com

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Java Beans
Copyright
Wipro Technologies
Talent Transformation
HTML Ver 1.0
Page 1
Objectives
•
•
•
•
•
•
•
Objectives
At the end of this session you will be able to:
Describe the Software Component Assembly Model
Explain Java’s approach to developing software components
Describe the essential prerequisites for developing Java Beans
Create an application using the Bean Box
Develop a simple Bean
Copyright
Wipro Technologies
Talent Transformation
HTML Ver 1.0
Page 2
The Software Component Assembly Model
Monolithic Application
Module1
Module2
Copyright
Wipro Technologies
Talent Transformation
Module3
HTML Ver 1.0
Page 3
The Component Assembly Model
An Application based on the software component
assembly model
Module
1
Module2
Module
5
Module3
Module4
Copyright
Wipro Technologies
Talent Transformation
HTML Ver 1.0
Page 4
Components and Containers
Container 1
Container 2
Container
Container 3
Component 1
Component 3
Component 4
Component 2
Component 5
Copyright
Wipro Technologies
Talent Transformation
HTML Ver 1.0
Page 5
Java’s Approach to Developing Software
Components
• Java Beans are reusable software Component that can be
integrated to create software applications.
• A Bean can be visual or Non Visual.
• Components written in other languages can be integrated
with Java components using a special interface.
Copyright
Wipro Technologies
Talent Transformation
HTML Ver 1.0
Page 6
The Difference between a Bean and a
Normal Class
•
•
•
•
•
•
•
•
•
•
•
public class Circle {
private float radius;
// the getter method
public float getRadius() {
return radius;
}
// the setter method
public void setRadius(float r) {
radius = r;
}
Copyright
Wipro Technologies
Talent Transformation
HTML Ver 1.0
Page 7
Related documents