|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.ExceptionMapperFactory
public class ExceptionMapperFactory
Exception mappers implementation that aggregates
exception mappers and server as the main entry point for exception mapper
instance lookup.
| Nested Class Summary | |
|---|---|
static class |
ExceptionMapperFactory.Binder
Exception mapper factory injection binder. |
| Constructor Summary | |
|---|---|
ExceptionMapperFactory(org.glassfish.hk2.api.ServiceLocator locator)
Create new exception mapper factory initialized with HK2 service locator instance that will be used to look up all providers implementing
ExceptionMapper interface. |
|
| Method Summary | ||
|---|---|---|
|
find(java.lang.Class<T> type)
Get an exception mapping provider for a particular class of exception. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public ExceptionMapperFactory(org.glassfish.hk2.api.ServiceLocator locator)
HK2 service locator instance that will be used to look up all providers implementing
ExceptionMapper interface.
locator - HK2 service locator.| Method Detail |
|---|
public <T extends java.lang.Throwable> ExceptionMapper<T> find(java.lang.Class<T> type)
ExceptionMapperstype.
find in interface ExceptionMappersT - type of the exception handled by the exception mapping provider.type - the class of exception.
ExceptionMapper for the supplied type or null
if none is found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||