|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.api.container.ContainerFactory
public final class ContainerFactory
Factory for creating specific HTTP-based containers.
| Method Summary | ||
|---|---|---|
static
|
createContainer(java.lang.Class<A> type)
Create an instance of a container according to the class requested. |
|
static
|
createContainer(java.lang.Class<A> type,
java.lang.Class<?>... resourceClasses)
Create a container according to the class requested. |
|
static
|
createContainer(java.lang.Class<A> type,
ResourceConfig resourceConfig)
Create a container according to the class requested. |
|
static
|
createContainer(java.lang.Class<A> type,
java.util.Set<java.lang.Class<?>> resourceClasses)
Create a container according to the class requested. |
|
static
|
createContainer(java.lang.Class<A> type,
java.lang.String... paths)
Create an instance of a container according to the class requested. |
|
static
|
createContainer(java.lang.Class<A> type,
java.lang.String packageName)
Create an instance of a container according to the class requested. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <A> A createContainer(java.lang.Class<A> type,
java.lang.Class<?>... resourceClasses)
throws ContainerException,
java.lang.IllegalArgumentException
The list of service-provider supporting the ContainerProvider
service-provider will be iterated over until one returns a non-null
container instance.
A - the type of the container.type - the type of the container.resourceClasses - the list of Web resources to be managed by the
Web application.
ContainerException - if there is an error creating the container.
java.lang.IllegalArgumentException - if no container provider supports the type.
public static <A> A createContainer(java.lang.Class<A> type,
java.util.Set<java.lang.Class<?>> resourceClasses)
throws ContainerException,
java.lang.IllegalArgumentException
The list of service-provider supporting the ContainerProvider
service-provider will be iterated over until one returns a non-null
container instance.
A - the type of the container.type - the type of the container.resourceClasses - the set of Web resources to be managed by the
Web application.
ContainerException - if there is an error creating the container.
java.lang.IllegalArgumentException - if no container provider supports the type.
public static <A> A createContainer(java.lang.Class<A> type,
ResourceConfig resourceConfig)
throws ContainerException,
java.lang.IllegalArgumentException
The list of service-provider supporting the ContainerProvider
service-provider will be iterated over until one returns a non-null
container instance.
A - the type of the container.type - the type of the container.resourceConfig - the resource configuration containing the set
of Web resources to be managed by the Web application.
ContainerException - if there is an error creating the container.
java.lang.IllegalArgumentException - if no container provider supports the type.
public static <A> A createContainer(java.lang.Class<A> type,
java.lang.String packageName)
throws ContainerException,
java.lang.IllegalArgumentException
A - the type of the container.type - the type of the container.packageName - the name of the package where to find the resource configuration
class.
ContainerException - if the resource configuration class could not
be found and instantiated or there is an error creating the container.
java.lang.IllegalArgumentException - if no container provider supports the type.public static <A> A createContainer(java.lang.Class<A> type)
All java classpath will be scanned for Root Resource Classes.
A - the type of the container.type - the type of the container.
java.lang.IllegalArgumentException - if no container provider supports the type.
public static <A> A createContainer(java.lang.Class<A> type,
java.lang.String... paths)
Root Resource Classes will be scanned in paths.
A - the type of the container.type - the type of the container.paths - a list of paths to be scanned for resource classes.
java.lang.IllegalArgumentException - if no container provider supports the type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||