|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceStore
Abstract input/output for the manipulation process.
Method Summary | |
---|---|
void |
accept(ResourceVisitor visitor)
Browse all resources available in this store. |
void |
close()
Close the store: no methods will be called anymore on this instance. |
void |
open()
Notify the store that resource will be written. |
byte[] |
read(java.lang.String path)
Return the bytecode of the given class name. |
void |
write(java.lang.String resourcePath,
byte[] resource)
Notify the builder that a new resource has been built and should be stored in the resulting bundle. |
void |
writeMetadata(org.apache.felix.ipojo.metadata.Element metadata)
Writes the given Element into this store. |
Method Detail |
---|
byte[] read(java.lang.String path) throws java.io.IOException
path
- normalized resource path (format: org/objectweb/asm/Visitor.class)
java.io.IOException
- if resource was not foundvoid accept(ResourceVisitor visitor)
visitor
- is called for each available resourcevoid open() throws java.io.IOException
java.io.IOException
- if there was an errorvoid writeMetadata(org.apache.felix.ipojo.metadata.Element metadata)
metadata
- Element metadata to be insertedvoid write(java.lang.String resourcePath, byte[] resource) throws java.io.IOException
resourcePath
- resource name of the class (format: org/objectweb/asm/Visitor.class)resource
- content of the resource
java.io.IOException
- if there was an error storing the resourcevoid close() throws java.io.IOException
java.io.IOException
- if close failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |