Skip to content

Commit

Permalink
TEIIDDES-1581 Service Loader For Repositories Is Not Finding the S-RA…
Browse files Browse the repository at this point in the history
…MP RepositoryProvider Impl

TEIIDDES-1582 Komodo Shell Command's Help And Usage Issues
Changed SoaRepositories to use its ClassLoader and now it is finding the RepositoryProviders. Updated the commands help and usage.
Also need to change the ShellProvider's service file name because S-RAMP had refactored the packages in their  shell framework.
  • Loading branch information
elvisisking committed Feb 6, 2013
1 parent 5dd3f4d commit e1422bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public SoaRepository get(final String url,
this.providers = new ConcurrentHashMap<String, RepositoryProvider>();

// load repository providers
for (final RepositoryProvider provider : ServiceLoader.load(RepositoryProvider.class)) {
for (final RepositoryProvider provider : ServiceLoader.load(RepositoryProvider.class, getClass().getClassLoader())) {
this.providers.putIfAbsent(provider.getType(), provider);
LOGGER.debug("Added repository provider with type '{}' and class '{}'", provider.getType(), provider.getClass()); //$NON-NLS-1$
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addVdbCommandHelp = The 'addVdb' command adds a VDB to the Komodo repository.\nExample usage:\n> komodo:addVdb [path-to-vdb]
addVdbCommandHelp = The 'addVdb' command adds a VDB to the Komodo repository.\nExample usage:\n> komodo:addVdb /Users/elvis/myvdb.xml
addVdbCommandUsage = komodo:addVdb [path-to-vdb]

# 1 = command name
Expand All @@ -11,10 +11,12 @@ connectKomodoCommandUsage = komodo:connect [server-url]
# 1 = file name
failedToOpenStream = A stream at '%s' could not be opened.

getVdbCommandHelp = The 'connectKomodo' queries for a VDB and version in a Komodo repository.\nExample usage:\n> komodo:getVdb [vdb-name] [vdb-version]
getVdbCommandUsage = komodo:connectKomodo [endpoint-url]
getVdbCommandHelp = The 'getVdb' queries for a VDB and version in a Komodo repository.\nExample usage:\n> komodo:getVdb MyVdb 1
getVdbCommandUsage = komodo:getVdb [vdb-name] [vdb-version]

# 1 = number of VDBs found, 2 = VDB name, 3 = version
matchingVdbsFoundInRepository = There are '%s' VDBs with a name of '%s' and version of '%s' found in the repository.

# 1 = VDB name, 2 = VDB version
noMatchingVdbsFoundInRepository = There are no matching VDBs with a name of '%s' and version of '%s' found in the repository.

Expand Down

0 comments on commit e1422bb

Please sign in to comment.