|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.classpath.TypeManagementServiceImpl
@Service public class TypeManagementServiceImpl
Implementation of TypeManagementService.
| Constructor Summary | |
|---|---|
TypeManagementServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addEnumConstant(String physicalTypeIdentifier,
org.springframework.roo.model.JavaSymbolName constantName)
Adds a new enum constant to an existing class. |
void |
addField(FieldMetadata field)
Adds a new field to an existing class. |
void |
createOrUpdateTypeOnDisk(ClassOrInterfaceTypeDetails cid)
Creates a physical type with the contents based on the ClassOrInterfaceTypeDetails passed in at the location denoted by
the passed in path. |
void |
generateClassFile(ClassOrInterfaceTypeDetails cid)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeManagementServiceImpl()
| Method Detail |
|---|
public void addEnumConstant(String physicalTypeIdentifier,
org.springframework.roo.model.JavaSymbolName constantName)
TypeManagementService
addEnumConstant in interface TypeManagementServicephysicalTypeIdentifier - to add (required)constantName - the name of the constant (required)public void addField(FieldMetadata field)
TypeManagementServiceAn exception is thrown if the class does not exist, cannot be modified or a field with the requested name is already declared.
addField in interface TypeManagementServicefield - the field to add (required)public void createOrUpdateTypeOnDisk(ClassOrInterfaceTypeDetails cid)
TypeManagementServiceClassOrInterfaceTypeDetails passed in at the location denoted by
the passed in path. This method expects the passed in file location to be
correct.
createOrUpdateTypeOnDisk in interface TypeManagementServicecid - ClassOrInterfaceTypeDetails to base the file contents
on (required)@Deprecated public void generateClassFile(ClassOrInterfaceTypeDetails cid)
TypeManagementServiceAn exception is thrown if the class already exists.
generateClassFile in interface TypeManagementServicecid - the ClassOrInterfaceTypeDetails to create (required)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||