|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.examples.ExampleUtils
public class ExampleUtils
Utilities needed by the examples.
| Constructor Summary | |
|---|---|
ExampleUtils()
|
|
| Method Summary | |
|---|---|
static org.apache.hivemind.Registry |
buildClasspathRegistry(java.lang.String file)
Convenience method for invoking buildClasspathRegistry(String[]) with only a single
file. |
static org.apache.hivemind.Registry |
buildClasspathRegistry(java.lang.String[] files)
Builds a registry for files in the classpath. |
protected static org.apache.hivemind.Registry |
buildRegistry(org.apache.hivemind.ModuleDescriptorProvider customProvider)
|
static org.apache.hivemind.Registry |
buildRegistry(java.lang.String fileName)
Builds a Registry for a file stored in the src/descriptor/META-INF directory. |
protected static org.apache.hivemind.Resource |
getResource(java.lang.String file)
Returns the given file as a Resource from the classpath. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExampleUtils()
| Method Detail |
|---|
public static org.apache.hivemind.Registry buildRegistry(java.lang.String fileName)
fileName - --
the name of the module descriptor file.
public static org.apache.hivemind.Registry buildClasspathRegistry(java.lang.String file)
throws java.lang.Exception
buildClasspathRegistry(String[]) with only a single
file.
java.lang.Exception
public static org.apache.hivemind.Registry buildClasspathRegistry(java.lang.String[] files)
throws java.lang.Exception
java.lang.Exceptionprotected static org.apache.hivemind.Registry buildRegistry(org.apache.hivemind.ModuleDescriptorProvider customProvider)
protected static org.apache.hivemind.Resource getResource(java.lang.String file)
Resource from the classpath. Typically, this is to find
files in the same folder as the invoking class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||