Skip navigation links

Java API Reference for Oracle Infrastructure Web Services
11
Release 1 (11.1.1)

E10654-02


oracle.webservices.annotations
Enum Conversational.Scope

java.lang.Object
  extended by java.lang.Enum<Conversational.Scope>
      extended by oracle.webservices.annotations.Conversational.Scope

All Implemented Interfaces:
Serializable, Comparable<Conversational.Scope>
Enclosing class:
Conversational

public static enum Conversational.Scope
extends Enum<Conversational.Scope>

The scope of a JAX-WS service endpoint implementation bean instance.


Enum Constant Summary
Application
          A single service endpoint instance is created for an JavaEE application.
Call
          A new service endpoint instance is created for each client request.
Container
          A new service endpoint instance is created and may be pooled by the container to serve multiple requrests targeting this service endpoint.
Session
          A new service endpoint instance is created for each new client session, and maintained for the lifetime of that session.

 

Method Summary
static Conversational.Scope valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Conversational.Scope[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.

 

Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Enum Constant Detail

Call

public static final Conversational.Scope Call
A new service endpoint instance is created for each client request.

Session

public static final Conversational.Scope Session
A new service endpoint instance is created for each new client session, and maintained for the lifetime of that session. This requires the underlying protocol binding to support the session.

Application

public static final Conversational.Scope Application
A single service endpoint instance is created for an JavaEE application.

Container

public static final Conversational.Scope Container
A new service endpoint instance is created and may be pooled by the container to serve multiple requrests targeting this service endpoint. This is similar to the default lifecycle of Servlet. If a service endpoint implementation bean is NOT annotated with Conversational, then the default scope is Container.

Method Detail

values

public static Conversational.Scope[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Conversational.Scope c : Conversational.Scope.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Conversational.Scope valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Skip navigation links

Copyright © 2006, 2009 Oracle. All Rights Reserved.