|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.renamer.RenamerHelper
public class RenamerHelper
This class is responsible for renaming process of classes stored in repository.
New classname is derived from the original classname and the version
of the containing code bundle: ""
Constructor Summary | |
---|---|
RenamerHelper()
|
Method Summary | |
---|---|
static java.util.Set<java.lang.String> |
getClasses(CodeBundle cb)
Reads CodeBundle jar file stored on the server and returns contained classes. |
static java.lang.String |
getNewClassName(java.lang.Class c,
CodeBundle bundle)
Creates a new classname for specified class from specified CodeBundle. |
static java.lang.String |
getNewClassName(java.lang.String className,
CodeBundle bundle)
Creates a new classname for specified class from specified CodeBundle. |
static void |
uploadRenamedFile(java.io.File in,
CodeBundle cb)
Main entry method of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RenamerHelper()
Method Detail |
---|
public static void uploadRenamedFile(java.io.File in, CodeBundle cb) throws java.io.IOException, DuplicitClassnameException
CodeBundle
.
in
- Source JAR filecb
- Destination CodeBundle
java.io.IOException
DuplicitClassnameException
public static java.lang.String getNewClassName(java.lang.String className, CodeBundle bundle)
className
- Old class namebundle
- Owner
public static java.lang.String getNewClassName(java.lang.Class c, CodeBundle bundle)
c
- Class, which class name should be convertedbundle
- Owner
public static java.util.Set<java.lang.String> getClasses(CodeBundle cb) throws java.io.IOException
cb
- CodeBundle from which we want list classes.
java.io.IOException
- If something went wrong trying read the CodeBundle jar file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |