org.springframework.roo.classpath.layers
Class LayerServiceImpl

java.lang.Object
  extended by org.springframework.roo.classpath.layers.LayerServiceImpl
All Implemented Interfaces:
LayerService

@Service
@Reference(name="layerProvider",
           strategy=EVENT,
           policy=DYNAMIC,
           referenceInterface=LayerProvider.class,
           cardinality=MANDATORY_MULTIPLE)
public class LayerServiceImpl
extends Object
implements LayerService

The LayerService implementation.

Since:
1.2.0
Author:
Stefan Schmidt

Constructor Summary
LayerServiceImpl()
           
 
Method Summary
protected  void bindLayerProvider(LayerProvider provider)
           
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, boolean autowire, Collection<? extends MethodParameter> methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, boolean autowire, MethodParameter... methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, Collection<? extends MethodParameter> methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
 MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString, String methodIdentifier, org.springframework.roo.model.JavaType targetEntity, org.springframework.roo.model.JavaType idType, int layerPosition, MethodParameter... methodParameters)
          Returns source code modifications for a requested operation offered by a layer provider
protected  void unbindLayerProvider(LayerProvider provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerServiceImpl

public LayerServiceImpl()
Method Detail

bindLayerProvider

protected void bindLayerProvider(LayerProvider provider)

getMemberTypeAdditions

public MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                                  String methodIdentifier,
                                                  org.springframework.roo.model.JavaType targetEntity,
                                                  org.springframework.roo.model.JavaType idType,
                                                  int layerPosition,
                                                  Collection<? extends MethodParameter> methodParameters)
Description copied from interface: LayerService
Returns source code modifications for a requested operation offered by a layer provider

Specified by:
getMemberTypeAdditions in interface LayerService
Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise

getMemberTypeAdditions

public MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                                  String methodIdentifier,
                                                  org.springframework.roo.model.JavaType targetEntity,
                                                  org.springframework.roo.model.JavaType idType,
                                                  int layerPosition,
                                                  boolean autowire,
                                                  Collection<? extends MethodParameter> methodParameters)
Description copied from interface: LayerService
Returns source code modifications for a requested operation offered by a layer provider

Specified by:
getMemberTypeAdditions in interface LayerService
Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise

getMemberTypeAdditions

public MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                                  String methodIdentifier,
                                                  org.springframework.roo.model.JavaType targetEntity,
                                                  org.springframework.roo.model.JavaType idType,
                                                  int layerPosition,
                                                  MethodParameter... methodParameters)
Description copied from interface: LayerService
Returns source code modifications for a requested operation offered by a layer provider

Specified by:
getMemberTypeAdditions in interface LayerService
Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise

getMemberTypeAdditions

public MemberTypeAdditions getMemberTypeAdditions(String metadataIdentificationString,
                                                  String methodIdentifier,
                                                  org.springframework.roo.model.JavaType targetEntity,
                                                  org.springframework.roo.model.JavaType idType,
                                                  int layerPosition,
                                                  boolean autowire,
                                                  MethodParameter... methodParameters)
Description copied from interface: LayerService
Returns source code modifications for a requested operation offered by a layer provider

Specified by:
getMemberTypeAdditions in interface LayerService
Parameters:
metadataIdentificationString - Id of calling metadata provider (required)
methodIdentifier - specifies the method which is being requested (required)
targetEntity - specifies the target entity (required)
idType - specifies the ID type used by the target entity (required)
layerPosition - the position of the layer invoking this method
methodParameters - parameters passed in to the method (types and names), if any
Returns:
MemberTypeAdditions if a layer provider can offer this functionality, null otherwise

unbindLayerProvider

protected void unbindLayerProvider(LayerProvider provider)


Copyright © 2009–2015. All rights reserved.