Package org.restlet.ext.guice
Class RestletGuice.Module.ServerResourceKeyFinder
- java.lang.Object
-
- org.restlet.Restlet
-
- org.restlet.resource.Finder
-
- org.restlet.ext.guice.RestletGuice.Module.KeyFinder
-
- org.restlet.ext.guice.RestletGuice.Module.ServerResourceKeyFinder
-
- All Implemented Interfaces:
Uniform
- Enclosing class:
- RestletGuice.Module
class RestletGuice.Module.ServerResourceKeyFinder extends RestletGuice.Module.KeyFinder
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.inject.Key<?>serverResourceKey
-
Constructor Summary
Constructors Constructor Description ServerResourceKeyFinder(com.google.inject.Key<?> serverResourceKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerResourcecreate(Request request, Response response)Creates a new instance of theServerResourcesubclass designated by the "targetClass" property.-
Methods inherited from class org.restlet.ext.guice.RestletGuice.Module.KeyFinder
getContext, getInjector, getTargetClass
-
Methods inherited from class org.restlet.resource.Finder
create, createFinder, find, handle, setTargetClass, toString
-
Methods inherited from class org.restlet.Restlet
createFinder, finalize, getApplication, getAuthor, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner, start, stop
-
-
-
-
Method Detail
-
create
public ServerResource create(Request request, Response response)
Description copied from class:FinderCreates a new instance of theServerResourcesubclass designated by the "targetClass" property. The default behavior is to invoke theFinder.create(Class, Request, Response)with the "targetClass" property as a parameter.
-
-