org.glassfish.jersey.server.internal
Class RuntimeDelegateImpl

java.lang.Object
  extended by javax.ws.rs.ext.RuntimeDelegate
      extended by org.glassfish.jersey.internal.AbstractRuntimeDelegate
          extended by 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)

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.ws.rs.ext.RuntimeDelegate
RuntimeDelegate.HeaderDelegate<T>
 
Field Summary
 
Fields inherited from class javax.ws.rs.ext.RuntimeDelegate
JAXRS_RUNTIME_DELEGATE_PROPERTY
 
Constructor Summary
RuntimeDelegateImpl()
           
 
Method Summary
<T> T
createEndpoint(Application application, Class<T> endpointType)
          Create a configured instance of the supplied endpoint type.
 
Methods inherited from class org.glassfish.jersey.internal.AbstractRuntimeDelegate
createHeaderDelegate, createLinkBuilder, createResponseBuilder, createUriBuilder, createVariantListBuilder
 
Methods inherited from class javax.ws.rs.ext.RuntimeDelegate
getInstance, setInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeDelegateImpl

public RuntimeDelegateImpl()
Method Detail

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.