Class FindServiceLayer
java.lang.Object
com.google.web.bindery.requestfactory.server.ServiceLayer
com.google.web.bindery.requestfactory.server.ServiceLayerDecorator
com.google.web.bindery.requestfactory.server.FindServiceLayer
Allows the use of a very short operation name for the find method. This also
avoids the need to introduce special-case code for FindRequest into
RequestFactoryInterfaceValidator.
-
Field Summary
Fields inherited from class com.google.web.bindery.requestfactory.server.ServiceLayerDecorator
next
Fields inherited from class com.google.web.bindery.requestfactory.server.ServiceLayer
top
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveDomainMethod
(String operation) Return the domain service method associated with a RequestContext method declaration.Class
<? extends RequestContext> resolveRequestContext
(String operation) Find a RequestContext that should be used to fulfill the requested operation.resolveRequestContextMethod
(String operation) Find a RequestContext method declaration by name.Methods inherited from class com.google.web.bindery.requestfactory.server.ServiceLayerDecorator
createDomainObject, createLocator, createServiceInstance, createServiceLocator, die, getDomainClassLoader, getGetter, getId, getIdType, getNext, getProperty, getRequestReturnType, getSetter, getTop, getVersion, invoke, isLive, loadDomainObject, loadDomainObjects, report, report, requiresServiceLocator, resolveClass, resolveClientType, resolveDomainClass, resolveLocator, resolveRequestFactory, resolveServiceClass, resolveServiceLocator, resolveTypeToken, setProperty, validate
Methods inherited from class com.google.web.bindery.requestfactory.server.ServiceLayer
create
-
Constructor Details
-
FindServiceLayer
public FindServiceLayer()
-
-
Method Details
-
resolveDomainMethod
Description copied from class:ServiceLayer
Return the domain service method associated with a RequestContext method declaration. TherequestContextMethod
will have been previously resolved byinvalid reference
#resolveRequestContextMethod(String, String)
- Overrides:
resolveDomainMethod
in classServiceLayerDecorator
- Returns:
- the domain service method that should be invoked
-
resolveRequestContext
Description copied from class:ServiceLayer
Find a RequestContext that should be used to fulfill the requested operation.- Overrides:
resolveRequestContext
in classServiceLayerDecorator
- Parameters:
operation
- the operation- Returns:
- the RequestContext or
null
if no RequestContext exists that can fulfill the operation
-
resolveRequestContextMethod
Description copied from class:ServiceLayer
Find a RequestContext method declaration by name.- Overrides:
resolveRequestContextMethod
in classServiceLayerDecorator
- Parameters:
operation
- the operation's name- Returns:
- the method declaration, or
null
if the method does not exist
-