|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.orchestra.dynaForm.uri.UriResolver
public abstract class UriResolver
Resolves the URI to a configuration
| Nested Class Summary | |
|---|---|
static class |
UriResolver.Configuration
The configuration |
| Constructor Summary | |
|---|---|
UriResolver()
|
|
| Method Summary | |
|---|---|
protected UriResolver.Configuration |
createConfiguration(Extractor extractor,
String entity)
|
protected InputStream |
findConfig(String config)
load the configuration |
protected String |
getRequiredProperty(String config,
Properties props,
String key)
|
protected InputStream |
getResourceAsStream(String resource)
|
protected UriResolver.Configuration |
resolve(String scheme,
String path)
Look in all META-INF directories in the classpath for a file of name "dynaForm-scheme.xml", where scheme is a parameter to this method. |
UriResolver.Configuration |
resolveUri(String uri)
resolve the given uri |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UriResolver()
| Method Detail |
|---|
protected UriResolver.Configuration createConfiguration(Extractor extractor,
String entity)
public UriResolver.Configuration resolveUri(String uri)
protected UriResolver.Configuration resolve(String scheme,
String path)
From that file, load a Properties object and get the value of key
"Extractor", which is expected to be the name of a class that implements
the Extractor
interface.
Use the Extractor instance to return a simple (extractor, classname) pairing. TODO: use the normal java Service configuration approach instead.
protected InputStream findConfig(String config)
protected InputStream getResourceAsStream(String resource)
protected String getRequiredProperty(String config,
Properties props,
String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||