Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New url handler: symbol [PAXURL-53] #90

Open
ops4j-issues opened this issue May 21, 2009 · 4 comments
Open

New url handler: symbol [PAXURL-53] #90

ops4j-issues opened this issue May 21, 2009 · 4 comments
Labels

Comments

@ops4j-issues
Copy link

Toni Menzel created PAXURL-53

This came just out of some observation: sometimes, you require an artifact that is pretty much denoted by an identifier only. But there are many (environment dependent) ways to get this artifact.
Example:
referal:org.foo.bar
where the url hander just picks up org.foo.bar and passes it forward to another, environment specific "resolver". This resolver for example could pick up this artifact from a local folder with substituting the following conversion:
org.foo.bar --> file:bundles/org.foo.bar.jar

Another resolver could translate it to an ordinary mvn protocol:
org.foo.bar --> mvn:group/org.foo.bar/1.0 where group and version here comes from the configuration of the resolver.

Most important thing i wanted to make here:
the user of the refereal can just predict a "symbolic" name, and does not have to know about anyhting more.
If you want, this would be an " enduser programmable" url handler.

Any questions ?


Votes: 0, Watches: 0

@ops4j-issues
Copy link
Author

Toni Menzel commented

or maybe the name "symbol" is better:
symbol:org.foo.bar

kind of like that.

@ops4j-issues
Copy link
Author

Toni Menzel commented

well, and the service in question could be look like that:
interface SymbolResolver() {
String resolve(String in);
}

@ops4j-issues
Copy link
Author

Alin Dreghiciu commented

I was thinking about the same but in conjunction with a plugable/configurable repository, where repository can resolve an artifact based on a string key and eventual version.
The repository will make use of Pax URL and Pax Runner scanners, somehow and be able to read "recipes" on the fly so a user could affect resolution process online.
Still, a lot of thinking.

@ops4j-issues ops4j-issues added the type: new feature New Feature label Feb 23, 2021
@grgrzybek
Copy link
Member

@tonit @adreghiciu how time flies... Do you remember this one after 14 years? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants