|
||||||||||
| 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.Module
Exception mapper factory injection binding registration module. |
| Constructor Summary | |
|---|---|
ExceptionMapperFactory(ServiceProviders serviceProviders)
Create new exception mapper factory initialized with service providers instance that will be used to look up all providers implementing
ExceptionMapper interface. |
|
ExceptionMapperFactory(java.util.Set<ExceptionMapper> mappers)
Create new exception mapper factory initialized with a set of exception mappers. |
|
| 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 |
|---|
public ExceptionMapperFactory(java.util.Set<ExceptionMapper> mappers)
mappers - exception mappers.public ExceptionMapperFactory(ServiceProviders serviceProviders)
service providers instance that will be used to look up all providers implementing
ExceptionMapper interface.
serviceProviders - service providers lookup instance.| 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 | |||||||||