Changed the META-INF location searched so that it follows the META-INF/services pattern that activemq uses.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@359688 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2005-12-29 02:57:53 +00:00
parent 05e97d1d18
commit 11fcdd83be
9 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ import edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
* {@see org.apache.activeio.Channel}s and {@see org.apache.activeio.ChannelServer}s.
*
* Each URI scheme that {@see ChannelFactory}object handles will have a
* properties file located at: "META-INF/org.apache.activeio.ChannelFactory/{scheme}".
* properties file located at: "META-INF/services/org/apache/activeio/channel/{scheme}".
*
*/
public class ChannelFactory implements SyncChannelFactory, AsyncChannelFactory {
@ -63,7 +63,7 @@ public class ChannelFactory implements SyncChannelFactory, AsyncChannelFactory {
});
}
private static FactoryFinder finder = new FactoryFinder("META-INF/org.apache.activeio.ChannelFactory/");
private static FactoryFinder finder = new FactoryFinder("META-INF/services/org/apache/activeio/channel/");
public SyncChannel openSyncChannel(URI location) throws IOException {
SyncChannelFactory factory = getSynchChannelFactory(location.getScheme());