org.springframework.roo.addon.web.mvc.controller.details
Class WebMetadataServiceImpl
java.lang.Object
org.springframework.roo.addon.web.mvc.controller.details.WebMetadataServiceImpl
- All Implemented Interfaces:
- WebMetadataService
@Service
public class WebMetadataServiceImpl
- extends Object
- implements WebMetadataService
Implementation of WebMetadataService to retrieve various metadata
information for use by Web scaffolding add-ons.
- Since:
- 1.1.2
- Author:
- Stefan Schmidt
|
Method Summary |
protected void |
activate(org.osgi.service.component.ComponentContext context)
|
Map<org.springframework.roo.classpath.customdata.tagkeys.MethodMetadataCustomDataKey,org.springframework.roo.classpath.layers.MemberTypeAdditions> |
getCrudAdditions(org.springframework.roo.model.JavaType domainType,
String metadataId)
|
Map<org.springframework.roo.model.JavaSymbolName,DateTimeFormatDetails> |
getDatePatterns(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
|
List<JavaTypeMetadataDetails> |
getDependentApplicationTypeMetadata(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
|
Set<FinderMetadataDetails> |
getDynamicFinderMethodsAndFields(org.springframework.roo.model.JavaType formBackingType,
org.springframework.roo.classpath.scanner.MemberDetails formBackingTypeDetails,
String metadataIdentificationString)
Returns details of the dynamic finders for the given form backing type |
org.springframework.roo.classpath.details.FieldMetadata |
getIdentifierField(org.springframework.roo.model.JavaType javaType)
|
JavaTypeMetadataDetails |
getJavaTypeMetadataDetails(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
|
JavaTypePersistenceMetadataDetails |
getJavaTypePersistenceMetadataDetails(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
|
org.springframework.roo.classpath.layers.LayerService |
getLayerService()
|
org.springframework.roo.classpath.scanner.MemberDetails |
getMemberDetails(org.springframework.roo.model.JavaType javaType)
|
org.springframework.roo.classpath.scanner.MemberDetailsScanner |
getMemberDetailsScanner()
|
org.springframework.roo.metadata.MetadataDependencyRegistry |
getMetadataDependencyRegistry()
|
org.springframework.roo.metadata.MetadataService |
getMetadataService()
|
org.springframework.roo.classpath.persistence.PersistenceMemberLocator |
getPersistenceMemberLocator()
|
SortedMap<org.springframework.roo.model.JavaType,JavaTypeMetadataDetails> |
getRelatedApplicationTypeMetadata(org.springframework.roo.model.JavaType baseType,
org.springframework.roo.classpath.scanner.MemberDetails baseTypeDetails,
String metadataIdentificationString)
Returns details of the Java types that are related to the given type |
List<org.springframework.roo.classpath.details.FieldMetadata> |
getScaffoldEligibleFieldMetadata(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
|
org.springframework.roo.classpath.TypeLocationService |
getTypeLocationService()
|
boolean |
isApplicationType(org.springframework.roo.model.JavaType javaType)
|
boolean |
isRooIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final Logger LOGGER
WebMetadataServiceImpl
public WebMetadataServiceImpl()
activate
protected void activate(org.osgi.service.component.ComponentContext context)
getCrudAdditions
public Map<org.springframework.roo.classpath.customdata.tagkeys.MethodMetadataCustomDataKey,org.springframework.roo.classpath.layers.MemberTypeAdditions> getCrudAdditions(org.springframework.roo.model.JavaType domainType,
String metadataId)
- Specified by:
getCrudAdditions in interface WebMetadataService
getDatePatterns
public Map<org.springframework.roo.model.JavaSymbolName,DateTimeFormatDetails> getDatePatterns(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
- Specified by:
getDatePatterns in interface WebMetadataService
getDependentApplicationTypeMetadata
public List<JavaTypeMetadataDetails> getDependentApplicationTypeMetadata(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
- Specified by:
getDependentApplicationTypeMetadata in interface WebMetadataService
getDynamicFinderMethodsAndFields
public Set<FinderMetadataDetails> getDynamicFinderMethodsAndFields(org.springframework.roo.model.JavaType formBackingType,
org.springframework.roo.classpath.scanner.MemberDetails formBackingTypeDetails,
String metadataIdentificationString)
- Description copied from interface:
WebMetadataService
- Returns details of the dynamic finders for the given form backing type
- Specified by:
getDynamicFinderMethodsAndFields in interface WebMetadataService
metadataIdentificationString - the ID of the
MetadataItem that's
using these details
- Returns:
null if this information is not currently available
getIdentifierField
public org.springframework.roo.classpath.details.FieldMetadata getIdentifierField(org.springframework.roo.model.JavaType javaType)
- Specified by:
getIdentifierField in interface WebMetadataService
getJavaTypeMetadataDetails
public JavaTypeMetadataDetails getJavaTypeMetadataDetails(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
- Specified by:
getJavaTypeMetadataDetails in interface WebMetadataService
getJavaTypePersistenceMetadataDetails
public JavaTypePersistenceMetadataDetails getJavaTypePersistenceMetadataDetails(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
- Specified by:
getJavaTypePersistenceMetadataDetails in interface WebMetadataService
getMemberDetails
public org.springframework.roo.classpath.scanner.MemberDetails getMemberDetails(org.springframework.roo.model.JavaType javaType)
- Specified by:
getMemberDetails in interface WebMetadataService
getRelatedApplicationTypeMetadata
public SortedMap<org.springframework.roo.model.JavaType,JavaTypeMetadataDetails> getRelatedApplicationTypeMetadata(org.springframework.roo.model.JavaType baseType,
org.springframework.roo.classpath.scanner.MemberDetails baseTypeDetails,
String metadataIdentificationString)
- Description copied from interface:
WebMetadataService
- Returns details of the Java types that are related to the given type
- Specified by:
getRelatedApplicationTypeMetadata in interface WebMetadataService
- Parameters:
baseType - the type for which to obtain related typesbaseTypeDetails - the details of the given typemetadataIdentificationString - the ID of the
MetadataItem
consuming the returned details; required for registering the
necessary metadata dependencies
- Returns:
- a non-
null map that includes the given type
getScaffoldEligibleFieldMetadata
public List<org.springframework.roo.classpath.details.FieldMetadata> getScaffoldEligibleFieldMetadata(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails,
String metadataIdentificationString)
- Specified by:
getScaffoldEligibleFieldMetadata in interface WebMetadataService
isApplicationType
public boolean isApplicationType(org.springframework.roo.model.JavaType javaType)
- Specified by:
isApplicationType in interface WebMetadataService
isRooIdentifier
public boolean isRooIdentifier(org.springframework.roo.model.JavaType javaType,
org.springframework.roo.classpath.scanner.MemberDetails memberDetails)
- Specified by:
isRooIdentifier in interface WebMetadataService
getLayerService
public org.springframework.roo.classpath.layers.LayerService getLayerService()
getMemberDetailsScanner
public org.springframework.roo.classpath.scanner.MemberDetailsScanner getMemberDetailsScanner()
getMetadataDependencyRegistry
public org.springframework.roo.metadata.MetadataDependencyRegistry getMetadataDependencyRegistry()
getMetadataService
public org.springframework.roo.metadata.MetadataService getMetadataService()
getPersistenceMemberLocator
public org.springframework.roo.classpath.persistence.PersistenceMemberLocator getPersistenceMemberLocator()
getTypeLocationService
public org.springframework.roo.classpath.TypeLocationService getTypeLocationService()
Copyright © 2009–2015. All rights reserved.