Restlet Framework 2.2.3
OSGi Environments

org.restlet.ext.osgi
Class DynamicFinder

java.lang.Object
  extended by org.restlet.Restlet
      extended by org.restlet.resource.Finder
          extended by 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)
           
 
Method Summary
 Class<? extends 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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicFinder

public DynamicFinder(org.osgi.framework.Bundle bundle,
                     String className)
Parameters:
bundle - the bundle containing the resource - must not be null
className - 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 null
className - the class name of the resource - must not be null
logService - the OSGi log service for logging errors - may be null
Method Detail

getTargetClass

public Class<? extends ServerResource> getTargetClass()
Overrides:
getTargetClass in class Finder

Restlet Framework 2.2.3
OSGi Environments

Copyright © 2005-2014 Restlet.