net.sourceforge.groboutils.autodoc.v1

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Test Coverage » GroboUtils » net.sourceforge.groboutils.autodoc.v1 
net.sourceforge.groboutils.autodoc.v1
net.sourceforge.groboutils.autodoc.v1 Test Self-Documentation aid classes.

Overview

This package contains a bootstrap class (AutoDoc), and the interfaces that it delivers.

Other classes use this package by creating an instance of the AutoDoc class on a per-class basis. This AutoDoc instance then returns to the using class-specific instances for the owning class' Self-Documentation needs.

Generating Implementations of the AutoDoc Framework

This framework makes it easy to create your own implementation for each part. Here's how the framework loads in the classes.

The AutoDoc class

The AutoDoc class loads an instance of the AutoDocFactory interface. It first checks the system property "net.sourceforge.groboutils.autodoc.AutoDocFactory.implementation". The value which this is set to will be the fully-qualified class name to create as the factory (an instance of AutoDocFactory). If that is not set, then it defaults to net.sourceforge.groboutils.autodoc.defimpl.DefaultAutoDocFactory.

Then, AutoDoc requests for a new instance of each entry-point interface from the loaded factory.

As an implementation creator, you could create your own AutoDocFactory instance, and set the system property to point to your own. Or, you could leave the DefaultAutoDocFactory, and depend upon it to load your specific entry-point factory.

The DefaultAutoDocFactory loads entry-point factories in a similar fashion to how AutoDoc loads its factory: through the system properties. It uses for the implementation class name the fully-qualified class name specified in the system property of the form "factory interface fully-qualified class name.implementation

". If the property isn't set, it uses the default implementation.

ToDo

  • Right now, there can be only one factory for each section system-wide. This should be modified to allow for a hierarchy much like log4j allows, where the owning class can have its own factory set, or its package, or each package component, or finally it defaults to the system-wide setting (and if that isn't defined, then the default framework setting). Alternatively, it could load a property file from each of these namespaces. I'll leave that as a AutoDoc factory specific type to be created in the future.
Java Source File NameTypeComment
AutoDoc.javaClass Entry class for loading the AutoDoc pieces for a particular class.
AutoDocIT.javaInterface Issue Tracker entry point.
AutoDocITUTestI.javaClass Tests the AutoDocIT interface.
AutoDocJDK13UTest.javaClass Tests the AutoDoc class.
AutoDocLog.javaInterface An interface for logging.
AutoDocLogUTestI.javaClass Tests the AutoDocLog interface.
AutoDocTP.javaInterface Test Procedure entry point.
AutoDocTPUTestI.javaClass Tests the AutoDocTP interface.
MockAutoDoc.javaClass Entry class for loading the AutoDoc pieces for a particular class.
ww__w___.___ja__v___a__2___s__.c__o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.