Resource Discovery

Java Resource Discovery Library

License

License

GroupId

GroupId

com.tacitknowledge
ArtifactId

ArtifactId

discovery
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

Resource Discovery
Java Resource Discovery Library
Project URL

Project URL

https://github.com/tacitknowledge/discovery
Project Organization

Project Organization

Tacit Knowledge
Source Code Management

Source Code Management

https://github.com/tacitknowledge/discovery

Download discovery

How to add to project

<!-- https://jarcasting.com/artifacts/com.tacitknowledge/discovery/ -->
<dependency>
    <groupId>com.tacitknowledge</groupId>
    <artifactId>discovery</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.tacitknowledge/discovery/
implementation 'com.tacitknowledge:discovery:1.0.5'
// https://jarcasting.com/artifacts/com.tacitknowledge/discovery/
implementation ("com.tacitknowledge:discovery:1.0.5")
'com.tacitknowledge:discovery:jar:1.0.5'
<dependency org="com.tacitknowledge" name="discovery" rev="1.0.5">
  <artifact name="discovery" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.tacitknowledge', module='discovery', version='1.0.5')
)
libraryDependencies += "com.tacitknowledge" % "discovery" % "1.0.5"
[com.tacitknowledge/discovery "1.0.5"]

Dependencies

compile (1)

Group / Artifact Type Version
commons-logging : commons-logging jar 1.1.1

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

Discovery

Discovery is used to detect resources (files or interface implementations) in a Java classpath.

Maven

<dependency>
  <groupId>com.tacitknowledge</groupId>
  <artifactId>discovery</artifactId>
  <version>1.0.5</version>
</dependency>

Simple Examples

To find any implementation of MigrationTask in com.example do:

Class[] taskClasses = ClassDiscoveryUtil.getClasses("com.example", MigrationTask.class);

To find any resource named foo*.sql in a "patch" folder within the classpath do:

String[] scripts = ClassDiscoveryUtil.getResources("patch", "^foo.*\\.sql$");
com.tacitknowledge

Tacit Knowledge

Versions

Version
1.0.5
1.0.4
1.0.3
1.0.2