KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > fractal > jar > adl > VersionLoader


1 /*
2  * Copyright area
3  */

4
5 package org.objectweb.fractal.jar.adl;
6
7 import java.util.Map JavaDoc;
8
9 import org.objectweb.fractal.adl.ADLException;
10 import org.objectweb.fractal.adl.Definition;
11 import org.objectweb.fractal.adl.xml.XMLLoader;
12
13 public class VersionLoader extends XMLLoader {
14
15   public Definition load (final String JavaDoc name, final Map JavaDoc context)
16     throws ADLException
17   {
18     int i = name.indexOf('-');
19     if (i > 0) {
20       //return super.load(name.substring(i + 1) + '/' + name.substring(0, i), context);
21
return super.load(name.substring(0, i), context);
22     } else {
23       return super.load(name, context);
24     }
25   }
26 }
27
Popular Tags