Package org.restlet.ext.osgi
Class DynamicFinder
- java.lang.Object
-
- org.restlet.Restlet
-
- org.restlet.resource.Finder
-
- org.restlet.ext.osgi.DynamicFinder
-
- All Implemented Interfaces:
org.restlet.Uniform
public class DynamicFinder extends org.restlet.resource.Finder
This class allows Restlet to lazily load resources in an OSGi environment. This class may be used as the finder in a @see ResourceProvider.- Author:
- Bryan Hunt, Wolfgang Werner
-
-
Constructor Summary
Constructors Constructor Description DynamicFinder(org.osgi.framework.Bundle bundle, java.lang.String className)
DynamicFinder(org.osgi.framework.Bundle bundle, java.lang.String className, org.osgi.service.log.LogService logService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends org.restlet.resource.ServerResource>
getTargetClass()
-
Methods inherited from class org.restlet.resource.Finder
create, create, createFinder, find, handle, setTargetClass, toString
-
Methods inherited from class org.restlet.Restlet
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner, start, stop
-
-
-
-
Constructor Detail
-
DynamicFinder
public DynamicFinder(org.osgi.framework.Bundle bundle, java.lang.String className)
- Parameters:
bundle
- the bundle containing the resource - must not be nullclassName
- the class name of the resource - must not be null
-
DynamicFinder
public DynamicFinder(org.osgi.framework.Bundle bundle, java.lang.String className, org.osgi.service.log.LogService logService)
- Parameters:
bundle
- the bundle containg the resource - must not be nullclassName
- the class name of the resource - must not be nulllogService
- the OSGi log service for logging errors - may be null
-
-