From b97389634f41dd9f981861ec37988bbfc0a797cf Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Sun, 18 Apr 2004 06:18:19 +0000 Subject: Add a port of jakarta-commons-discovery. 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). PR: 65490 Submitted by: Herve Quiroz --- java/Makefile | 1 + java/jakarta-commons-discovery/Makefile | 48 ++++++++++++++++++++++++++++++++ java/jakarta-commons-discovery/distinfo | 2 ++ java/jakarta-commons-discovery/pkg-descr | 16 +++++++++++ 4 files changed, 67 insertions(+) create mode 100644 java/jakarta-commons-discovery/Makefile create mode 100644 java/jakarta-commons-discovery/distinfo create mode 100644 java/jakarta-commons-discovery/pkg-descr (limited to 'java') diff --git a/java/Makefile b/java/Makefile index e956ad1d9097..228570b41523 100644 --- a/java/Makefile +++ b/java/Makefile @@ -39,6 +39,7 @@ SUBDIR += jakarta-commons-cli SUBDIR += jakarta-commons-collections SUBDIR += jakarta-commons-dbcp + SUBDIR += jakarta-commons-discovery SUBDIR += jakarta-commons-lang SUBDIR += jakarta-commons-logging SUBDIR += jakarta-commons-pool diff --git a/java/jakarta-commons-discovery/Makefile b/java/jakarta-commons-discovery/Makefile new file mode 100644 index 000000000000..85f9c19dcbc3 --- /dev/null +++ b/java/jakarta-commons-discovery/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: jakarta-commons-discovery +# Date created: 2004-04-13 +# Whom: Herve Quiroz +# +# $FreeBSD$ +# + +PORTNAME= commons-discovery +PORTVERSION= 0.2 +CATEGORIES= java devel +MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} +MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/binaries +PKGNAMEPREFIX= jakarta- + +MAINTAINER= herve.quiroz@esil.univ-mrs.fr +COMMENT= A Java library for locating resources (including classes) + +USE_JAVA= YES +JAVA_VERSION= 1.3+ +JAVA_RUN= JDK +NO_BUILD= YES + +.if !defined(NOPORTDOCS) +PORTDOCS= api LICENSE +.endif +JARFILE= ${PORTNAME}.jar +PLIST_FILES+= ${JAVAJARDIR:S,^${PREFIX}/,,}/${JARFILE} + +post-extract: + @${MV} ${WRKSRC}/LICENSE ${WRKSRC}/docs/ + +do-install: + @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..." + @${MKDIR} ${JAVAJARDIR} + @${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/ + @${ECHO_MSG} " [ DONE ]" +.if !defined(NOPORTDOCS) + @${ECHO_MSG} -n ">> Installing documentation..." + @${MKDIR} ${DOCSDIR} +.for DOCFILE in ${PORTDOCS} + @${CP} -r ${WRKSRC}/docs/${DOCFILE} ${DOCSDIR}/ + @${ECHO_MSG} -n " ${DOCFILE}" +.endfor + @${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} + @${ECHO_MSG} " [ DONE ]" +.endif + +.include diff --git a/java/jakarta-commons-discovery/distinfo b/java/jakarta-commons-discovery/distinfo new file mode 100644 index 000000000000..0cce006a8d57 --- /dev/null +++ b/java/jakarta-commons-discovery/distinfo @@ -0,0 +1,2 @@ +MD5 (commons-discovery-0.2.tar.gz) = 2273f5f83a477f4f18fccf3a00e2b48c +SIZE (commons-discovery-0.2.tar.gz) = 118701 diff --git a/java/jakarta-commons-discovery/pkg-descr b/java/jakarta-commons-discovery/pkg-descr new file mode 100644 index 000000000000..57f754aac21a --- /dev/null +++ b/java/jakarta-commons-discovery/pkg-descr @@ -0,0 +1,16 @@ +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). + +WWW: http://jakarta.apache.org/commons/discovery/ -- cgit v1.2.3