Class CommandModelDataProvider
java.lang.Object
com.sun.enterprise.admin.util.cache.CommandModelDataProvider
- All Implemented Interfaces:
DataProvider
Works with
CachedCommandModel and
invalid input: '{@link com.sun.enterprise.admin.util.CommandModelData).<br/> This is <i>hand made</i> implementation which is focused
on human readability and fastness.'- Author:
- mmares
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantoInstance(InputStream stream, Class clazz) voidwriteToStream(Object o, OutputStream stream) voidwriteToStreamSimpleFormat(org.glassfish.api.admin.CommandModel cm, OutputStream stream) Super simple format possible because there can't be any problematic symbol like EOL in attributes.
-
Constructor Details
-
CommandModelDataProvider
public CommandModelDataProvider()
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceDataProvider
-
writeToStream
- Specified by:
writeToStreamin interfaceDataProvider- Throws:
IOException
-
writeToStreamSimpleFormat
public void writeToStreamSimpleFormat(org.glassfish.api.admin.CommandModel cm, OutputStream stream) throws IOException Super simple format possible because there can't be any problematic symbol like EOL in attributes.- Throws:
IOException
-
toInstance
- Specified by:
toInstancein interfaceDataProvider- Throws:
IOException
-