public class ModuleSaver extends Object
PropertyModule configurations or adding
these to XML Nodes.| Constructor and Description |
|---|
ModuleSaver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
save(File file,
Collection<? extends com.google.inject.Module> modules)
Save the module configurations to a
File. |
boolean |
save(String filename,
Collection<? extends com.google.inject.Module> modules)
Save the module configurations to a file (as filename).
|
String |
toXMLString(Collection<? extends com.google.inject.Module> modules)
Returns the xml representation of the
Modules. |
String |
toXMLString(com.google.inject.Module module)
Returns the xml representation of the
Module. |
boolean |
write(OutputStream out,
Collection<? extends com.google.inject.Module> modules)
Save the modules configuration to an
OutputStream. |
boolean |
write(OutputStream out,
com.google.inject.Module module)
Save the module configuration to an
OutputStream. |
public boolean save(String filename, Collection<? extends com.google.inject.Module> modules)
filename - the name of the filemodules - the modulestrue if successfulpublic boolean save(File file, Collection<? extends com.google.inject.Module> modules)
File.file - the filemodules - the modulestrue if successfulpublic boolean write(OutputStream out, Collection<? extends com.google.inject.Module> modules)
OutputStream.out - the output streammodules - the modulestrue if successfulpublic boolean write(OutputStream out, com.google.inject.Module module)
OutputStream.out - the output stream}module - the moduletrue if successfulpublic String toXMLString(com.google.inject.Module module)
Module.module - the modulepublic String toXMLString(Collection<? extends com.google.inject.Module> modules)
Modules.modules - the modules