Class CommandModelDataProvider
- java.lang.Object
-
- com.sun.enterprise.admin.util.cache.CommandModelDataProvider
-
- All Implemented Interfaces:
DataProvider
@Service public class CommandModelDataProvider extends Object implements DataProvider
Works withCachedCommandModeland {@link com.sun.enterprise.admin.util.CommandModelData).
This is hand made implementation which is focused on human readability and fastness.- Author:
- mmares
-
-
Constructor Summary
Constructors Constructor Description CommandModelDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Class clazz)ObjecttoInstance(InputStream stream, Class clazz)voidwriteToStream(Object o, OutputStream stream)voidwriteToStreamSimpleFormat(CommandModel cm, OutputStream stream)Super simple format possible because there can't be any problematic symbol like EOL in attributes.
-
-
-
Method Detail
-
accept
public boolean accept(Class clazz)
- Specified by:
acceptin interfaceDataProvider
-
writeToStream
public void writeToStream(Object o, OutputStream stream) throws IOException
- Specified by:
writeToStreamin interfaceDataProvider- Throws:
IOException
-
writeToStreamSimpleFormat
public void writeToStreamSimpleFormat(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
public Object toInstance(InputStream stream, Class clazz) throws IOException
- Specified by:
toInstancein interfaceDataProvider- Throws:
IOException
-
-