@Service public class TypeManagementServiceImpl extends Object implements TypeManagementService
TypeManagementService.| Constructor and Description |
|---|
TypeManagementServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void addEnumConstant(String physicalTypeIdentifier, org.springframework.roo.model.JavaSymbolName constantName)
TypeManagementServiceaddEnumConstant 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)Copyright © 2009–2016. All rights reserved.