|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.roo.classpath.operations.ClasspathOperationsImpl
@Service public class ClasspathOperationsImpl
OSGi implementation of ClasspathOperations.
| Constructor Summary | |
|---|---|
ClasspathOperationsImpl()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
|
void |
createClass(org.springframework.roo.model.JavaType name,
boolean rooAnnotations,
org.springframework.roo.project.LogicalPath path,
org.springframework.roo.model.JavaType superclass,
org.springframework.roo.model.JavaType implementsType,
boolean createAbstract,
boolean permitReservedWords)
Creates a new Java class source file in any project path. |
void |
createConstructor(org.springframework.roo.model.JavaType name,
Set<String> fields)
Creates a new constructor in the specified class with the fields provided. |
void |
createEnum(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
Creates a new Java enum source file in any project path. |
void |
createInterface(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
Creates a new Java interface source file in any project path. |
protected void |
deactivate(org.osgi.service.component.ComponentContext context)
|
void |
enumConstant(org.springframework.roo.model.JavaType name,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean permitReservedWords)
Inserts a new enum constant into an enum. |
void |
focus(org.springframework.roo.model.JavaType type)
Changes the focus to the given type. |
boolean |
isProjectAvailable()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClasspathOperationsImpl()
| Method Detail |
|---|
public void createClass(org.springframework.roo.model.JavaType name,
boolean rooAnnotations,
org.springframework.roo.project.LogicalPath path,
org.springframework.roo.model.JavaType superclass,
org.springframework.roo.model.JavaType implementsType,
boolean createAbstract,
boolean permitReservedWords)
ClasspathOperations
createClass in interface ClasspathOperationsname - the name of the class to createrooAnnotations - whether the generated class should have common Roo
annotationspath - the source directory in which to create the classsuperclass - the superclass (defaults to Object)implementsType - the interface to implementcreateAbstract - whether the generated class should be marked as
abstractpermitReservedWords - whether reserved words are ignored by Roo
public void createConstructor(org.springframework.roo.model.JavaType name,
Set<String> fields)
ClasspathOperationsIf the set of fields is null, a public no-arg constructor will be created if not already present. If fields is not null but empty or if all of the supplied fields do not exist in the class, the method returns silently.
createConstructor in interface ClasspathOperationsname - the name of the class (required).fields - the fields to include in the constructor.
public void createEnum(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
ClasspathOperations
createEnum in interface ClasspathOperationsname - the name of the enum to createpath - the source directory in which to create the enumpermitReservedWords - whether reserved words are ignored by Roo
public void createInterface(org.springframework.roo.model.JavaType name,
org.springframework.roo.project.LogicalPath path,
boolean permitReservedWords)
ClasspathOperations
createInterface in interface ClasspathOperationsname - the name of the interface to createpath - the source directory in which to create the interfacepermitReservedWords - whether reserved words are ignored by Roo
public void enumConstant(org.springframework.roo.model.JavaType name,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean permitReservedWords)
ClasspathOperations
enumConstant in interface ClasspathOperationsname - the enum class to receive this fieldfieldName - the name of the constantpermitReservedWords - whether reserved words are ignored by Roopublic void focus(org.springframework.roo.model.JavaType type)
ClasspathOperations
focus in interface ClasspathOperationstype - the type to focus on (required)public boolean isProjectAvailable()
isProjectAvailable in interface ClasspathOperationsprotected void activate(org.osgi.service.component.ComponentContext context)
protected void deactivate(org.osgi.service.component.ComponentContext context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||