Java activation framework jaf

Learning Java by

Get full access to Learning Java and 60K+ other titles, with a free 10-day trial of O’Reilly.

There are also live events, courses curated by job role, and more.

The Java Activation Framework

The Java Activation Framework ( JAF ) is a standard extension that can be used by Beans that work with many external data types, such as media retrieved from files and streams. It is essentially a generalized content/protocol handler mechanism for Java Beans. The JAF is an extensible set of classes that wrap arbitrary, raw data sources to provide access to their data as streams or objects, identify the MIME type of the data, and enumerate a registered set of “commands” for operating on the data.

The JAF provides two primary interfaces: DataSource and DataHandler . The DataSource acts something like the protocol handlers we discussed in Chapter 12. It wraps the data source and determines a MIME type for the data stream. The DataHandler acts something like a content handler, except that it provides a great deal more than access to the data. A DataHandler is constructed to wrap a DataSource and interpret the data in different forms. It also provides a list of command operations that can be used to access the data. DataHandler also implements the java.awt.datatransfer.Transferable interface, allowing data to be passed among application components in a well defined way.

Читайте также:  Php mysql отправка запроса

Get Learning Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Источник

JavaBeans Activation Framework

With the JavaBeans Activation Framework standard extension, developers who use Java technology can take advantage of standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and to instantiate the appropriate bean to perform said operation(s). For example, if a browser obtained a JPEG image, this framework would enable the browser to identify that stream of data as an JPEG image, and from that type, the browser could locate and instantiate an object that could manipulate, or view that image.

The JavaBeans Activation Framework is implemented as a standard extension. Sun provides a royalty-free reference implementation of the JAF software, in binary form, that developers can use to develop JAF technology-enabled applications for any platform that supports the Java Development Kit (JDK) 1.1 software or the Java 2 Standard Edition. Sun’s reference implementation of the JAF standard extension is available for download below.

JAF 1.0.2 released!

JAF 1.0.2 is a maintenance release. Version 1.0.2 fixes many minor bugs.
For a detailed description see the jaf-changes.txt document.

  • Available for online viewing ( PDF).
  • You can also view the javadoc generated API description online.

Any Java technology-compatible platform running the JDK 1.1 software or the Java 2 Standard Edition.

There is effectively no installation of the JAF. The classes that make up the JAF standard extension are contained in the included Java Archive (JAR) file, «activation.jar». This file can be placed anywhere accessible to the Java virtual machine * running on your system. The only requirement is that the JAR file be included in your system’s class path so the Java virtual machine can find the JAF classes.

  • Release Notes: The release notes for this release including, installation instructions and system requirements.
  • activation.jar: This JAR (Java Archive) file containing the classes that make up JavaBeans Activation Framework.
  • Demos: A directory containing some simple unsupported demos that make use of some of the JAF’s features.
  • Documentation: A directory containing the Javadoc API descriptions for the public classes in the JAF.

Download JavaBeans Activation Framework 1.0.2 release

*As used on this web site, the terms «Java virtual machine» or «JVM» mean a virtual machine for the Java platform.

Источник

Downloads

With the JavaBeans Activation Framework standard extension, developers who use Java technology can take advantage of standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and to instantiate the appropriate bean to perform said operation(s). For example, if a browser obtained a JPEG image, this framework would enable the browser to identify that stream of data as an JPEG image, and from that type, the browser could locate and instantiate an object that could manipulate, or view that image.

The JavaBeans Activation Framework is implemented as a standard extension. Sun provides a royalty-free reference implementation of the JAF software, in binary form, that developers can use to develop JAF technology-enabled applications for any platform that supports version 1.4 or later of the Java 2 Standard Edition. Sun’s reference implementation of the JAF standard extension is available for download below.

JAF 1.1.1 released!

The JavaBeans Activation Framework 1.1.1 contains a bug fix for the Turkish locale and a minor enhancement to better support byte arrays and Strings in the DataHandler.writeTo method.

The JavaBeans Activation Framework 1.1.1 requires J2SE 1.4 or greater.

The JavaBeans Activation Framework 1.1.1 final release is included with the Java SE 6 release and is also available separately.

For a detailed description of the fixes see the jaf-changes.txt document.

Any Java technology-compatible platform running version 1.4 or later of the Java 2 Standard Edition

There is effectively no installation of the JAF. The classes that make up the JAF standard extension are contained in the included Java Archive (JAR) file, «activation.jar». This file can be placed anywhere in your class path.

  • Release Notes: The release notes for this release including, installation instructions and system requirements.
  • activation.jar: This JAR (Java Archive) file containing the classes that make up JavaBeans Activation Framework.
  • Demos: A directory containing some simple unsupported demos that make use of some of the JAF’s features.
  • Documentation: A directory containing the Javadoc API descriptions for the public classes in the JAF.

Download JavaBeans Activation Framework 1.1.1 release

Feedback on the JavaBeans Activation Framework

Send comments, feedback and bugs to : activation-comments@sun.com

Previous Releases

Источник

Java activation framework jaf

With the JavaBeans Activation Framework standard extension, developers who use Java technology can take advantage of standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and to instantiate the appropriate bean to perform said operation(s). For example, if a browser obtained a JPEG image, this framework would enable the browser to identify that stream of data as an JPEG image, and from that type, the browser could locate and instantiate an object that could manipulate, or view that image.

The JavaBeans Activation Framework is implemented as a standard extension. Sun provides a royalty-free reference implementation of the JAF software, in binary form, that developers can use to develop JAF technology-enabled applications for any platform that supports version 1.4 or later of the Java 2 Standard Edition. Sun’s reference implementation of the JAF standard extension is available for download below.

The JavaBeans Activation Framework 1.1 contains a few small enhancements and bugs fixes. The enhancements are described here and have been approved by the JCP as JSR-925. The primary enhancements are:

  • Provide a list of all MIME types known to a MailcapCommandMap.
  • Provide access to the native commands known to a MailcapCommandMap.
  • Support for fallback entries in mailcap file.

The JavaBeans Activation Framework 1.1 requires J2SE 1.4 or greater.

The JavaBeans Activation Framework 1.1 final release is included with the Java SE 6 release and the Java EE 5 release, and is also available separately.

jaf11-changes.txt

Javabeans Activation Framework 1.1

Bugs fixed in the 1.1 Release:

Bug Id Synopsis
use context class loader to load data content handlers
guard against possible NPE when parsing mailcap file
really make sure input stream gets closed in DataHandler.writeTo
4134676 need way to find all known MIME types
4786035 API doc: some bugs in javax/activation/MimeType.cmnt
4848096 MailcapCommandMap should store *ALL* mailcap entries
5090200 CommandMap needs file name to choose proper command on Windows
6245613 fix ActivationDataFlavor normalize methods to match DataFlavor
6252930 MailcapCommandMap needs support for «fallback» entries in mailcap file
6357487 DataHandler.getBean should load class using application’s class loader

Specification

  • Available for online viewing (in postscript or PDF).
  • You can also view the javadoc generated API description online.

System Requirements

Any Java technology-compatible platform running version 1.4 or later of the Java 2 Standard Edition

Installation

There is effectively no installation of the JAF. The classes that make up the JAF standard extension are contained in the included Java Archive (JAR) file, «activation.jar». This file can be placed anywhere in your class path.

What’s in the JAF release?

  • Release Notes: The release notes for this release including, installation instructions and system requirements.
  • activation.jar: This JAR (Java Archive) file containing the classes that make up JavaBeans Activation Framework.
  • Demos: A directory containing some simple unsupported demos that make use of some of the JAF’s features.
  • Documentation: A directory containing the Javadoc API descriptions for the public classes in the JAF.

Download JavaBeans Activation Framework 1.1 release

Feedback on the JavaBeans Activation Framework

Send comments, feedback and bugs to : activation-comments@sun.com

*As used on this web site, the terms «Java virtual machine» or «JVM» mean a virtual machine for the Java platform.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

javaee / activation Public archive

License

javaee/activation

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

⚠️ This project is now part of the EE4J initiative. This repository has been archived as all activities are now happening in the corresponding Eclipse repository. See here for the overall EE4J transition status.

JavaBeans Activation Framework (JAF)

The JavaBeans Activation Framework (JAF) is a standard extension to the Java platform that lets you take advantage of standard services to: determine the type of an arbitrary piece of data; encapsulate access to it; discover the operations available on it; and instantiate the appropriate bean to perform the operation(s).

JAF is used by JavaMail and JAX-WS for data content handling.

JAF is included in Java SE 6 and later.

This standalone release of JAF uses a Java Platform Module System «automatic» module name of java.activation , to match the module name used in JDK 9. A future version will include full module metadata.

Источник

Оцените статью