Bean Architecture
Bean Architecture
BEAN
A bean is represented by an interface that is
seen by the users.
The environment must connect to this interface,
if it wants to interact with this bean.
Beans consist of three general-purpose
interfaces:
events,
properties,
Methods
Interface1:Events
Bean events are the mechanism for
sending asynchronous messages b/w beans, &
b/w beans and containers.
Interface1:Events
Bean developers
can design their
own event types and
event listener interfaces and
make their
beans act as a source by implementing
the addXXXListener(EventObject e) &
removeXXXListener(EventObject e) methods,
where XXX is the name of the event type.
Interface2:Properties
Properties define the characteristics of the
bean.
They can be changed at runtime through
their get and set methods.
You can use properties to send two-way
synchronous communications between
beans.
Beans also support asynchronous property
changes between beans using special
event communication.
Interface3:Methods
Methods are operations through which you can interact
with a bean.
Beans receive notification of events by having the
appropriate event source method call them.
Some methods are special and deal with properties and
events.
These methods must follow special naming conventions
outlined in the beans specification.
Other methods might be unrelated to an event or
property.
All public methods of a bean are accessible to the beans
framework and can be used to connect a bean to other
beans.
Bean Introspection
BDK
The BeanBox is a test container that you can use to
do the following:
Resize and move beans
Alter beans with property sheet
Customize beans with a customizer application
Connect beans together
Drop beans onto a composition window
Save beans through serialization
Restore beans
JAR Files
JAR (Java archive)
platform-independent file format that aggregates many
files into one.
You can bundle multiple Java applets and their requisite
components
(.class files, images, and sounds) in a JAR file
subsequently download to a browser in a single HTTP transaction,
greatly improving the download speed.
The JAR format also supports compression
for example:
<applet code="Animator.class archive="jars/animator.jar
width="460" height="160" >
<param name="foo" value="bar">
</applet>
Documentation Tags