commons-discovery-0.5/ 0000755 0001750 0001750 00000000000 11643422202 014726 5 ustar drazzib drazzib commons-discovery-0.5/build.properties.sample 0000644 0001750 0001750 00000002745 11550346276 021450 0 ustar drazzib drazzib # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##########################################################################
# Sample Ant build.properties file
#
# This setup assumes dependent jars are in a local maven 2 repository.
# However the jars are located, the properties ending in ".jar" need
# expand to full paths to the jars.
##########################################################################
# Repository base path - unnecessary if full jar paths are provided below
repository=${user.home}/.m2/repository
# JUnit
junit.home=${repository}/junit/junit/4.8.2
junit.jar=${junit.home}/junit-4.8.2.jar
# Commons logging
logger.home=${repository}/commons-logging/commons-logging/1.1.1
logger.jar=${logger.home}/commons-logging-1.1.1.jar commons-discovery-0.5/pom.xml 0000644 0001750 0001750 00000017715 11556060015 016261 0 ustar drazzib drazzib
org.apache.commons
commons-parent
20
4.0.0
commons-discovery
commons-discovery
0.5
Commons Discovery
2002
The Apache Commons Discovery component is about discovering, or finding,
implementations for pluggable interfaces.
http://commons.apache.org/discovery/
jira
http://issues.apache.org/jira/browse/DISCOVERY
scm:svn:http://svn.apache.org/repos/asf/commons/proper/discovery/tags/DISCOVERY_0_5_RC2
scm:svn:https://svn.apache.org/repos/asf/commons/proper/discovery/tags/DISCOVERY_0_5_RC2
http://svn.apache.org/viewvc/commons/proper/discovery/tags/DISCOVERY_0_5_RC2
Richard Sitze
rsitze
Craig R. McClanahan
craigmcc
Costin Manolache
costin
James Strachan
jstrachan
jstrachan@apache.org
SpiritSoft, Inc.
Matthew Hawthorne
matth
matth@apache.org
Davanum Srinivas
dims
dims@apache.org
Rory Winston
rwinston
rwinston@eircom.net
Robert Burrell Donkin
rdonkin
rdonkin@apache.org
Simone Tripodi
simonetripodi
simonetripodi@apache.org
commons-logging
commons-logging
1.1.1
junit
junit
4.8.2
test
discovery
0.5
(minium JDK 1.5)
RC2
DISCOVERY
12310472
1.5
1.5
apache.website
Apache Commons Site
${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/discovery
src/java
src/test
${basedir}/src/test
**/*.properties
**/testResource
META-INF/**
org.apache.maven.plugins
maven-surefire-plugin
**/TestAll.java
${basedir}/src/testAlt1
${basedir}/src/testAlt2
maven-assembly-plugin
package
single
src/assembly/bin.xml
src/assembly/src.xml
gnu
org.apache.maven.plugins
maven-changes-plugin
2.3
${basedir}/src/changes/changes.xml
%URL%/%ISSUE%
changes-report
org.apache.maven.plugins
maven-checkstyle-plugin
2.1
${basedir}/checkstyle.xml
false
org.codehaus.mojo
findbugs-maven-plugin
2.3.1
Normal
Default
${basedir}/findbugs-exclude-filter.xml
rc
apache.website
Apache Commons Release Candidate Staging Site
${commons.deployment.protocol}://people.apache.org/www/people.apache.org/builds/commons/${commons.componentid}/${commons.release.version}/${commons.rc.version}/site
commons-discovery-0.5/doap_discovery.rdf 0000644 0001750 0001750 00000004437 11546071675 020465 0 ustar drazzib drazzib
Apache Commons Discovery
Java
Commons Discovery
Commons Discovery
commons-discovery
2003-04-15
0.2
commons-discovery-0.5/STATUS.html 0000644 0001750 0001750 00000007505 10653533705 016661 0 ustar drazzib drazzib
Status File for Apache Commons "Discovery" Component
1. INTRODUCTION
The commons-discovery package provides best-practice algorithms for
discovering (locating) implementations of Java interfaces.
It includes support for locating/loading properties files,
caching-by-classloaders, and attempts using various classloaders.
commons-discovery was heavily influenced by code originally
integrated into commons-logging, which was likely to have been based
on experience/projects related to the committers of that component.
Goals:
- Portable across JDK 1.1.8 or above
- Represent Best-Practices for locating & loading Classes and Resources in non-trivial environments (non-trivial classloader hierarchies).
- Functional in standalone Java runtime environments
- Functional within a J2EE environment.
Non-goals:
- Replacing J2EE container managed services. This means: middleware solutions
(commons-logging, axis, etc) that need to discover interface implementations
are encouraged to use this as they must remain independent of J2EE,
yet it is expected that these may be packaged as part of a
Web Application (WAR/EAR/JAR).
Applications/solutions developed for a J2EE managed environment should
NOT use commons-discovery.
2. DEPENDENCIES
The Discovery component is dependent upon the following external
components for compilation:
The user must ensure that any service that they wish
to discover (use) are 'discoverable' by the application environments classloaders
(in the classpath, war/ear/jar file, etc) when they use this component.
3. RELEASE INFO
Current Release: 0.2, CVS Repository Only
Planned Next Release: RC1
4. COMMITTERS
The following individuals are the primary developers and maintainers of this
component. Developers who plan to use Discovery in their own
projects are encouraged to collaborate on the future development of this
component to ensure that it continues to meet a variety of needs.
- Richard A. Sitze
- Costin Manoloche
- Craig R. McClanahan
- Matthew Hawthorne
5. ACTION ITEMS
TO DO List: see also TODO file
commons-discovery-0.5/PROPOSAL.html 0000644 0001750 0001750 00000010301 10653172436 017061 0 ustar drazzib drazzib
Proposal for Service Discovery
Proposal for Service Discovery Package
(0) Rationale
The Discovery Component is about discovering, or finding,
implementations for pluggable interfaces.
It provides facilities intantiating classes in general,
and for lifecycle management of singleton (factory) classes.
Fundamentally, Discovery locates classes that implement a given Java interface.
The discovery pattern, though not necessarily this package,
is used in many projects including JAXP (SaxParserFactory and others)
and commons-logging (LogFactory).
By extracting this pattern, other projects can (re)use it
and take advantage of improvements to the pattern as Discovery evolves.
Discovery improves over previous implementations
by establishing facilities for working within managed environments.
These allow configuration and property overrides without appealing
to the global System properties (which are scoped across an entire JVM).
(1) Scope of the Package
This is not indended to be a replacement to be used strictly by the user, but rather
a replacement to be used directly by projects. Use by the user is also reasonable,
but limited due to 'keeping this simple'. In particular, there is no configuration
for this discovery service, it relies soley on usage patterns.
Given a java.lang.Class parameter 'package.Class' that represents a
fundamental service as either an interface, an abstract class
(or even a regular class), find an implementation of that class:
- Look for system property named 'package.Class', the value of which is the
name of an implementation.
- Look for a 'local' property named 'package.Class'...
- Attempt JDK 1.3+ style discovery
- Attempt to load a default implementation
In all cases, verify that the discovered implementation implements
'package.Class'.
The package should :
- Have an API which should be as simple to use as possible
- Be based on usage patterns, not specific configuration file
- Represent proper discovery & class-loading principles
- Be reasonably portable across JDK levels (1.1.8+?)
(1.5) Interaction With Other Packages
Services relies on:
- Java Development Kit (Version 1.1 or later)
- [by design] Nothing Else, particularly anything that would be classified as a 'service'.
(2) Required Jakarta-Commons Resources
- CVS Repository - New directory
discovery
in the
jakarta-commons-sandbox
CVS repository.
- Initial Committers - The list is provided below.
- Mailing List - Discussions will take place on the general
dev@commons.apache.org mailing list. To help list
subscribers identify messages of interest, it is suggested that the
message subject of messages about this component be prefixed with
[discovery].
- Bugzilla - New component "discovery" under the "Commons" product
category, with appropriate version identifiers as needed.
- Jyve FAQ - New category "discovery" (when available).
(4) Initial Committers
The initial committers on the Service Discovery component shall be:
- Richard A. Sitze
- Costin Manoloche
- Craig R. McClanahan
commons-discovery-0.5/build.xml 0000644 0001750 0001750 00000020743 11036753301 016560 0 ustar drazzib drazzib
commons-discovery-0.5/RELEASE-NOTES.txt 0000644 0001750 0001750 00000004071 11556040267 017451 0 ustar drazzib drazzib $Id: RELEASE-NOTES.txt 1097166 2011-04-27 16:13:43Z sebb $
Commons Discovery Package
Version 0.5
Release Notes
INTRODUCTION
============
This is an APIs update and maintenance release.
New projects are encouraged to use this release of discovery.
IMPORTANT NOTES
===============
BREAKING CHANGES:
* The minimum JDK requirement is now JDK 1.5. The provided binaries will not
work on lower JDKs. The source has been updated to leverage Generics and
other JDK 1.5 features where possible, and requires JDK 1.5 to compile.
Dependencies
=============
Commons Discovery depends on Commons Logging. It is built against version 1.1.1.
NEW FEATURES
=============
* Discovery APIs use Java5 Generics.
BUGS FROM PREVIOUS RELEASE
=========================
JIRA Issues Addressed
---------------------
* DISCOVERY-3 (https://issues.apache.org/jira/browse/DISCOVERY-3)
* DISCOVERY-6 (https://issues.apache.org/jira/browse/DISCOVERY-6)
* DISCOVERY-7 (https://issues.apache.org/jira/browse/DISCOVERY-7)
* DISCOVERY-9 (https://issues.apache.org/jira/browse/DISCOVERY-9)
* DISCOVERY-11 (https://issues.apache.org/jira/browse/DISCOVERY-11)
* DISCOVERY-12 (https://issues.apache.org/jira/browse/DISCOVERY-12)
* DISCOVERY-14 (https://issues.apache.org/jira/browse/DISCOVERY-14)
* DISCOVERY-15 (https://issues.apache.org/jira/browse/DISCOVERY-15)
* DISCOVERY-16 (https://issues.apache.org/jira/browse/DISCOVERY-16)
* DISCOVERY-17 (https://issues.apache.org/jira/browse/DISCOVERY-17)
Known bugs/limitations
---------------------
resource.classes.DiscoverClasses doesn't work with Oracle embedded JVM in DBMS,
see DISCOVERY-13 (https://issues.apache.org/jira/browse/DISCOVERY-13)
DEPRECATIONS
============
Classes in org.apache.commons.discovery.log package have been deprecated,
depending on Apache Commons Logging 1.1.1 there is no more circular dependency
between Apache Commons Discovery and Apache Commons Logging.
setLog(org.apache.commons.logging.Log) methods have been deprecated too,
they are not thread-safe.
commons-discovery-0.5/LICENSE.txt 0000644 0001750 0001750 00000026136 10210071235 016554 0 ustar drazzib drazzib
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
commons-discovery-0.5/findbugs-exclude-filter.xml 0000644 0001750 0001750 00000002303 11550303234 022161 0 ustar drazzib drazzib
commons-discovery-0.5/checkstyle.xml 0000644 0001750 0001750 00000003060 11547423734 017623 0 ustar drazzib drazzib
commons-discovery-0.5/NOTICE.txt 0000644 0001750 0001750 00000000262 11546067144 016464 0 ustar drazzib drazzib Apache Commons Discovery
Copyright 2002-2011 The Apache Software Foundation
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
commons-discovery-0.5/src/ 0000755 0001750 0001750 00000000000 11643422202 015515 5 ustar drazzib drazzib commons-discovery-0.5/src/assembly/ 0000755 0001750 0001750 00000000000 11643422200 017332 5 ustar drazzib drazzib commons-discovery-0.5/src/assembly/bin.xml 0000644 0001750 0001750 00000003564 11550141364 020642 0 ustar drazzib drazzib
bin
tar.gz
zip
false
LICENSE.txt
NOTICE.txt
RELEASE-NOTES.txt
target
*.jar
target/site/apidocs
apidocs
commons-discovery-0.5/src/assembly/src.xml 0000644 0001750 0001750 00000003554 11550303115 020652 0 ustar drazzib drazzib
src
tar.gz
zip
${project.artifactId}-${commons.release.version}-src
checkstyle.xml
LICENSE.txt
NOTICE.txt
pom.xml
PROPOSAL.html
RELEASE-NOTES.txt
TODO
findbugs-exclude-filter.xml
src
commons-discovery-0.5/src/changes/ 0000755 0001750 0001750 00000000000 11643422202 017125 5 ustar drazzib drazzib commons-discovery-0.5/src/changes/changes.xml 0000644 0001750 0001750 00000005735 11550161110 021264 0 ustar drazzib drazzib
Commons Discovery Changes
Enumeration in Service class is broken.
[discovery] Doesn't work with ClassLoaders that do not support getResource()
Discovery failed to load an inner class.
Documentation of other use cases.
Service.providers Enumeration does not catch and discard
UnsatisfiedLinkErrors and ExceptionInInitializerErrors.
SPI implementation class searching logic has some issues: it discards all errors;
it only considers first className in supplied classNames array.
Problem with Oracle JVM classLoader.
Moved to Java5 APIs, used Generics.
Custom org.apache.commons.discovery.log.Log implementation replaced by
default commons-logging behavior.
The setLog() methods are not thread-safe and should be deprecated.
Enumeration returned by Service.providers has a broken behavior.
commons-discovery-0.5/src/media/ 0000755 0001750 0001750 00000000000 11643422200 016572 5 ustar drazzib drazzib commons-discovery-0.5/src/media/logo.xcf 0000644 0001750 0001750 00000054703 10006021306 020237 0 ustar drazzib drazzib gimp xcf file , d B B &