com.sun.jersey.simple.impl.container
Class SimpleContainerProvider

java.lang.Object
  extended by com.sun.jersey.simple.impl.container.SimpleContainerProvider
All Implemented Interfaces:
ContainerProvider<org.simpleframework.http.core.Container>

public class SimpleContainerProvider
extends Object
implements ContainerProvider<org.simpleframework.http.core.Container>

This is used to provide the SimpleContainer implementation when the class path is scanned by the ContainerFactory.createContainer(Class) method. This will return a simple container what wraps the provided web application.

Author:
Marc.Hadley@Sun.Com

Constructor Summary
SimpleContainerProvider()
           
 
Method Summary
 org.simpleframework.http.core.Container createContainer(Class<org.simpleframework.http.core.Container> type, ResourceConfig resourceConfig, WebApplication application)
          Create an container of type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleContainerProvider

public SimpleContainerProvider()
Method Detail

createContainer

public org.simpleframework.http.core.Container createContainer(Class<org.simpleframework.http.core.Container> type,
                                                               ResourceConfig resourceConfig,
                                                               WebApplication application)
                                                        throws ContainerException
Description copied from interface: ContainerProvider
Create an container of type T.

The container provider SHOULD NOT initiate the Web application. The container provider MAY modify the resource configuraton.

Specified by:
createContainer in interface ContainerProvider<org.simpleframework.http.core.Container>
Parameters:
type - the type of the container.
resourceConfig - the resource configuration.
application - the Web application the container delegates to for the handling of HTTP requests.
Returns:
the container, otherwise null if the provider does not support the requested type.
Throws:
ContainerException - if there is an error creating the container.


Copyright © 2013 Oracle Corporation. All Rights Reserved.