public class ControllerMetadata
extends org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItem
RooController.| Constructor and Description |
|---|
ControllerMetadata(String identifier,
org.springframework.roo.model.JavaType aspectName,
org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata,
org.springframework.roo.model.JavaType entity,
org.springframework.roo.model.JavaType service,
List<org.springframework.roo.model.JavaType> detailsServices,
String path)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.project.LogicalPath path) |
org.springframework.roo.classpath.details.ConstructorMetadata |
getConstructor()
This method returns the controller constructor
|
static org.springframework.roo.model.JavaType |
getJavaType(String metadataIdentificationString) |
static String |
getMetadataIdentiferType() |
static org.springframework.roo.project.LogicalPath |
getPath(String metadataIdentificationString) |
org.springframework.roo.classpath.details.FieldMetadata |
getServiceDetailField(org.springframework.roo.model.JavaType detailService)
This method returns service field included on controller
|
org.springframework.roo.classpath.details.FieldMetadata |
getServiceField()
This method returns service field included on controller
|
static boolean |
isValid(String metadataIdentificationString) |
String |
toString() |
buildItd, ensureGovernorExtends, ensureGovernorHasConstructor, ensureGovernorHasField, ensureGovernorHasMethod, ensureGovernorImplements, ensureGovernorIsAnnotated, getAccessorMethod, getAccessorMethod, getAccessorMethod, getAccessorMethod, getAspectName, getField, getField, getGovernorMethod, getGovernorMethod, getMemberHoldingTypeDetails, getMethod, getMutatorMethod, getMutatorMethod, getTypeAnnotation, governorHasMethod, governorHasMethod, governorHasMethodWithSameName, hashCode, isImplementingpublic ControllerMetadata(String identifier, org.springframework.roo.model.JavaType aspectName, org.springframework.roo.classpath.PhysicalTypeMetadata governorPhysicalTypeMetadata, org.springframework.roo.model.JavaType entity, org.springframework.roo.model.JavaType service, List<org.springframework.roo.model.JavaType> detailsServices, String path)
identifier - the identifier for this item of metadata (required)aspectName - the Java type of the ITD (required)governorPhysicalTypeMetadata - the governor, which is expected to
contain a ClassOrInterfaceTypeDetails (required)entity - Javatype with entity managed by controllerservice - JavaType with service used by controllerdetailsServices - List with all services of every field that will be used
as detailpath - controllerPathpublic static String createIdentifier(org.springframework.roo.model.JavaType javaType, org.springframework.roo.project.LogicalPath path)
public static org.springframework.roo.model.JavaType getJavaType(String metadataIdentificationString)
public static String getMetadataIdentiferType()
public static org.springframework.roo.project.LogicalPath getPath(String metadataIdentificationString)
public static boolean isValid(String metadataIdentificationString)
public org.springframework.roo.classpath.details.ConstructorMetadata getConstructor()
public org.springframework.roo.classpath.details.FieldMetadata getServiceField()
public org.springframework.roo.classpath.details.FieldMetadata getServiceDetailField(org.springframework.roo.model.JavaType detailService)
service - public String toString()
toString in class org.springframework.roo.classpath.itd.AbstractItdTypeDetailsProvidingMetadataItemCopyright © 2009–2016. All rights reserved.