Package org.kordamp.jipsy.processor
Class AbstractResourcePersistence
- java.lang.Object
-
- org.kordamp.jipsy.processor.AbstractPersistence
-
- org.kordamp.jipsy.processor.AbstractResourcePersistence
-
- All Implemented Interfaces:
Persistence
- Direct Known Subclasses:
ServicePersistence,SisuIndexPersistence,TypePersistence
public abstract class AbstractResourcePersistence extends AbstractPersistence
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.annotation.processing.Filerfiler-
Fields inherited from class org.kordamp.jipsy.processor.AbstractPersistence
logger, name, path
-
-
Constructor Summary
Constructors Constructor Description AbstractResourcePersistence(javax.annotation.processing.Filer filer, java.lang.String name, Logger logger, java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.tools.FileObjectcreateResourceFile(java.lang.String name)protected java.io.WritercreateWriter(java.lang.String name)voiddelete()java.io.FiledetermineOutputLocation()InitializergetInitializer()protected javax.tools.FileObjectgetResourceFile(java.lang.String name)-
Methods inherited from class org.kordamp.jipsy.processor.AbstractPersistence
getFileFilter, listDiscoveredFiles, tryFind, write, writeLog
-
-
-
-
Constructor Detail
-
AbstractResourcePersistence
public AbstractResourcePersistence(javax.annotation.processing.Filer filer, java.lang.String name, Logger logger, java.lang.String path)
-
-
Method Detail
-
getInitializer
public Initializer getInitializer()
-
determineOutputLocation
public java.io.File determineOutputLocation()
-
delete
public void delete() throws java.io.IOException- Throws:
java.io.IOException
-
getResourceFile
protected javax.tools.FileObject getResourceFile(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
createResourceFile
protected javax.tools.FileObject createResourceFile(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
createWriter
protected java.io.Writer createWriter(java.lang.String name) throws java.io.IOException- Specified by:
createWriterin classAbstractPersistence- Throws:
java.io.IOException
-
-