org.glassfish.jersey.server.internal
Class RuntimeDelegateImpl
java.lang.Object
javax.ws.rs.ext.RuntimeDelegate
org.glassfish.jersey.internal.AbstractRuntimeDelegate
org.glassfish.jersey.server.internal.RuntimeDelegateImpl
public class RuntimeDelegateImpl
- extends AbstractRuntimeDelegate
Server-side implementation of JAX-RS RuntimeDelegate
.
This overrides the default implementation of RuntimeDelegate
from
jersey-common which does not implement createEndpoint(javax.ws.rs.core.Application, java.lang.Class)
method.
- Author:
- Jakub Podlesak, Marek Potociar (marek.potociar at oracle.com), Martin Matula (martin.matula at oracle.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeDelegateImpl
public RuntimeDelegateImpl()
createEndpoint
public <T> T createEndpoint(Application application,
Class<T> endpointType)
throws IllegalArgumentException,
UnsupportedOperationException
- Description copied from class:
RuntimeDelegate
- Create a configured instance of the supplied endpoint type. How the
returned endpoint instance is published is dependent on the type of
endpoint.
- Specified by:
createEndpoint
in class RuntimeDelegate
- Type Parameters:
T
- endpoint type.- Parameters:
application
- the application configuration.endpointType
- the type of endpoint instance to be created.
- Returns:
- a configured instance of the requested type.
- Throws:
IllegalArgumentException
- if application is null or the requested endpoint type is
not supported.
UnsupportedOperationException
- if the implementation supports no endpoint types.
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.