Documentation Home
> Sun GlassFish Enterprise Server v3 Prelude Add-On Component Development Guide
Sun GlassFish Enterprise Server v3 Prelude Add-On Component Development Guide
Book Information
Index
A
B
C
D
E
F
G
H
I
J
L
M
N
O
P
R
S
T
U
V
W
Preface
Chapter 1 Introduction to the Development Environment for Enterprise Server Add-On Components
Enterprise Server Modular Architecture and Add-On Components
OSGi Alliance Module Management Subsystem
Hundred-Kilobyte Kernel
Overview of the Development Process for an Add-On Component
Writing HK2 Components
Extending the Administration Console
Extending the asadmin Utility
Adding Monitoring Capabilities
Adding Container Capabilities
Packaging and Delivering an Add-On Component
Chapter 2 Writing HK2 Components
HK2 Component Model
Services in the HK2 Component Model
HK2 Runtime
Scopes of Services
Instantiation of Components in HK2
HK2 Lifecycle Interfaces
Inversion of Control
Injecting HK2 Components
Extraction
Instantiation Cascading in HK2
Identifying a Class as an Add-On Component
Using the Apache Maven Build System to Develop HK2 Components
Chapter 3 Extending the Administration Console
Administration Console Architecture
Implementing a Console Provider
About Administration Console Templates
About Integration Points
Specifying the ID of an Add-On Component
Adding Functionality to the Administration Console
Adding a Node to the Navigation Tree
Creating a JavaServer Faces Page for Your Node
Adding Tabs to a Page
Creating JavaServer Faces Pages for Your Tabs
Adding a Task to the Common Tasks Page
Creating a JavaServer Faces Page for Your Task
Adding a Task Group to the Common Tasks Page
Creating a JavaServer Faces Page for Your Task Group
Adding Content to a Page
Creating a JavaServer Faces Page for Your Page Content
Adding a Page to the Administration Console
Adding Internationalization Support
Changing the Theme or Brand of the Administration Console
Creating an Integration Point Type
To Create an Integration Point Type
Chapter 4 Extending the asadmin Utility
About the Administrative Command Infrastructure of Enterprise Server
Adding an asadmin Command
Representing an asadmin Command as a Java Class
Specifying the Name of an asadmin Command
Ensuring That an AdminCommand Implementation Is Stateless
Example of Adding an asadmin Command
Adding Parameters to an asadmin Command
Representing a Parameter of an asadmin Command
Identifying a Parameter of an asadmin Command
Specifying Whether a Parameter Is an Option or an Operand
Specifying the Name of an Option
Specifying the Long Form of an Option Name
Specifying the Short Form of an Option Name
Specifying the Acceptable Values of a Parameter
Specifying the Default Value of a Parameter
Specifying Whether a Parameter Is Required or Optional
Example of Adding Parameters to an asadmin Command
Adding Message Text Strings to an asadmin Command
Enabling an asadmin Command to Run
Setting the Context of an asadmin Command
Changing the Brand in the Enterprise Server CLI
Examples of Extending the asadmin Utility
Chapter 5 Adding Monitoring Capabilities
Defining Statistics That Are to Be Monitored
Defining an Event Provider
Identifying the Event Type
Specifying Event Parameters
Example of Defining an Event Provider
Registering an Event Provider
Sending an Event
Updating the Monitorable Object Tree
Creating Event Listeners
Subscribing to Events From Event Provider Classes
Registering an Event Listener
Adding Statistics for a Component to the Monitorable Object Tree
Creating a TreeNode Object to Represent a Component
Creating Objects to Represent a Component's Statistics
Getting the server Node Object
Adding an Object to the Tree
Dotted Names for an Add-On Component's Statistics
Example of Adding Statistics for a Component to the Monitorable Object Tree
Example of Adding Monitoring Capabilities
Chapter 6 Adding Container Capabilities
Creating a Container Implementation
Marking the Class with the @Service Annotation
Implementing the Container Interface
Adding an Archive Type
Implementing the ArchiveHandler Interface
Creating Connector Modules
Associating File Types with Containers Using the Sniffer Interface
Making Sniffer Implementations Available to the Enterprise Server
Chapter 7 Packaging, Integrating, and Delivering an Add-On Component
Packaging an Add-On Component
Integrating an Add-On Component With Enterprise Server
Delivering an Add-On Component Through Update Tool
Appendix A Integration Point Reference
Integration Point Attributes
org.glassfish.admingui:treeNode Integration Point
org.glassfish.admingui:serverInstTab Integration Point
org.glassfish.admingui:commonTask Integration Point
org.glassfish.admingui:configuration Integration Point
org.glassfish.admingui:resources Integration Point
org.glassfish.admingui:customtheme Integration Point
org.glassfish.admingui:masthead Integration Point
org.glassfish.admingui:loginimage Integration Point
org.glassfish.admingui:loginform Integration Point
org.glassfish.admingui:versioninfo Integration Point
Appendix B Template Reference
Base Template
Property Sheet Template
Property Table Template
Sheet Table Template
Administration Console Property Sheet Template
Administration Console Property Table Template
Administration Console Sheet Table Template
© 2010, Oracle Corporation and/or its affiliates