|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.manipulator.Pojoization
public class Pojoization
Pojoization allows creating an iPOJO bundle from a "normal" bundle.
Field Summary | |
---|---|
static String |
IPOJO_PACKAGE_VERSION
iPOJO Imported Package Version. |
Constructor Summary | |
---|---|
Pojoization()
|
Method Summary | |
---|---|
List |
getErrors()
|
List |
getWarnings()
|
Map |
parseHeader(String value)
Standard OSGi header parser. |
void |
pojoization(File in,
File out,
File metadataFile)
Manipulates an input bundle. |
void |
pojoization(File in,
File out,
InputStream metadata)
Manipulates an input bundle. |
String |
printClauses(Map exports,
String allowedDirectives)
Print a standard Map based OSGi header. |
void |
setAnnotationProcessing()
Activates annotation processing. |
void |
setUseLocalXSD()
Activates the entity resolver loading XSD files from the classloader. |
void |
warn(String mes)
Add a warning in the warning list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IPOJO_PACKAGE_VERSION
Constructor Detail |
---|
public Pojoization()
Method Detail |
---|
public void warn(String mes)
mes
- : warning messagepublic List getErrors()
public void setAnnotationProcessing()
public void setUseLocalXSD()
public void pojoization(File in, File out, InputStream metadata)
in
- the original bundle.out
- the final bundle.metadata
- the iPOJO metadata input stream.public void pojoization(File in, File out, File metadataFile)
in
- the original bundle.out
- the final bundle.metadataFile
- the iPOJO metadata file (XML).public Map parseHeader(String value)
value
- : String to parse.
public String printClauses(Map exports, String allowedDirectives)
exports
- : map { name => Map { attribute|directive => value } }allowedDirectives
- : list of allowed directives.
public List getWarnings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |