|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectJsr181ObjectModelStore
public class Jsr181ObjectModelStore
Encapsulates all knowledge about where and how object models are persisted.
Constructor Summary | |
---|---|
Jsr181ObjectModelStore(AnnotationProcessorEnvironment env)
Constructor. |
Method Summary | |
---|---|
static File |
getLocation(String className)
Encapsulates the encoding of the pathname for object models. |
static BeehiveWsTypeMetadata |
load(Class clazz)
|
static BeehiveWsTypeMetadata |
load(InputStream is)
|
static Class |
loadWebServiceClass(String className)
Tries to find the class with a given className . |
void |
store(BeehiveWsTypeMetadata objectModel)
Persists a given objectModel . |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Jsr181ObjectModelStore(AnnotationProcessorEnvironment env)
env
- A context that is required to access the filer.
TODO needs to be abstracted further.Method Detail |
---|
public static File getLocation(String className)
-
public static BeehiveWsTypeMetadata load(Class clazz) throws IOException, ClassNotFoundException
clazz
-
IOException
ClassNotFoundException
public static BeehiveWsTypeMetadata load(InputStream is) throws IOException, ClassNotFoundException
is
-
IOException
ClassNotFoundException
public void store(BeehiveWsTypeMetadata objectModel) throws IOException
objectModel
.
objectModel
- The object mode to be persisted.
IOException
- If the object model cannot be persisted.public static Class loadWebServiceClass(String className) throws ClassNotFoundException
className
. If
className
is a simple name, the method tries to find a
matching fully qualified class name. The respective class is then
loaded and returned.
className
- A class name; may be a fully qualified or a simple class
name.
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |