org.restlet.ext.osgi
Class DynamicFinder
java.lang.Object
org.restlet.Restlet
org.restlet.resource.Finder
org.restlet.ext.osgi.DynamicFinder
- All Implemented Interfaces:
- Uniform
public class DynamicFinder
- extends 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 |
DynamicFinder(org.osgi.framework.Bundle bundle,
String className)
|
DynamicFinder(org.osgi.framework.Bundle bundle,
String className,
org.osgi.service.log.LogService logService)
|
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 |
DynamicFinder
public DynamicFinder(org.osgi.framework.Bundle bundle,
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,
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
getTargetClass
public Class<? extends ServerResource> getTargetClass()
- Overrides:
getTargetClass
in class Finder
Copyright © 2005-2014 Restlet.