public class GuicedRestlet
extends org.restlet.resource.Finder
Finder
to use Guice to create an instance of the specified ServerResource class.Constructor and Description |
---|
GuicedRestlet(org.restlet.Context context,
Class<? extends org.restlet.resource.ServerResource> serverResource)
Constructs a new GuicedRestlet.
|
Modifier and Type | Method and Description |
---|---|
org.restlet.resource.ServerResource |
create(org.restlet.Request request,
org.restlet.Response response)
Creates an instance of the ServerResource specified at construction.
|
create, createFinder, find, getTargetClass, handle, setTargetClass, toString
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner, start, stop
public GuicedRestlet(org.restlet.Context context, Class<? extends org.restlet.resource.ServerResource> serverResource)
context
- The Restlet context.serverResource
- The ServerResource class to create.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.