Package org.restlet.ext.guice
Interface FinderFactory
-
- All Known Implementing Classes:
RestletGuice.Module
public interface FinderFactoryFactory for dependency-injecting Finders.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Finderfinder(java.lang.Class<?> cls)Returns aFinderthat will obtain a dependency-injected instance of the ServerResource subtype bound to the type associated with the given class.Finderfinder(java.lang.Class<?> cls, java.lang.Class<? extends java.lang.annotation.Annotation> qualifier)Returns aFinderthat will obtain a dependency-injected instance of the ServerResource subtype bound to the type and qualifier associated with the given class.
-
-
-
Method Detail
-
finder
Finder finder(java.lang.Class<?> cls)
Returns aFinderthat will obtain a dependency-injected instance of the ServerResource subtype bound to the type associated with the given class.- Parameters:
cls- The class to instantiate.- Returns:
- An instance of
Finder. - Throws:
com.google.inject.ProvisionException- ifclsis not bound toServerResourceor a subclass.
-
finder
Finder finder(java.lang.Class<?> cls, java.lang.Class<? extends java.lang.annotation.Annotation> qualifier)
Returns aFinderthat will obtain a dependency-injected instance of the ServerResource subtype bound to the type and qualifier associated with the given class.- Parameters:
cls- The class to instantiate.qualifier- The qualifier associated with the given class.- Returns:
- An instance of
Finder. - Throws:
com.google.inject.ProvisionException- ifclsqualified byqualifieris not bound toServerResourceor a subclass.
-
-