|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.workarea.PrimitiveContextFactory
public class PrimitiveContextFactory
PrimitiveContextFactory
provides internal users and
layered products convenience mechanisms for creating
WorkContext
s instances containing primitive data.
WorkContextMap
Constructor Summary | |
---|---|
PrimitiveContextFactory()
|
Method Summary | |
---|---|
static WorkContext |
create(long ctx)
Creates a new WorkContext containing 64-bit long
context data. |
static WorkContext |
create(Serializable ctx)
Creates a new WorkContext containing opaque
Serializable context data. |
static WorkContext |
create(String ctx)
Creates a new WorkContext containing Unicode String
context data. |
static WorkContext |
createASCII(String ctx)
Creates a new WorkContext containing 8-bit ASCII
context data. |
static String |
createEncodedKey(String key)
Creates a short WorkContext key based on
key . |
static WorkContext |
createMutable(Serializable ctx)
Creates a new WorkContext containing opaque
Serializable context data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveContextFactory()
Method Detail |
---|
public static String createEncodedKey(String key)
WorkContext
key based on
key
. Short keys are more efficiently serialized. The
returned key will always be the same for the same values of
key
.
WorkContextMap.put(java.lang.String, weblogic.workarea.WorkContext)
public static WorkContext create(String ctx)
WorkContext
containing Unicode String
context data.
WorkContextMap.put(java.lang.String, weblogic.workarea.WorkContext)
public static WorkContext create(long ctx)
WorkContext
containing 64-bit long
context data.
WorkContextMap.put(java.lang.String, weblogic.workarea.WorkContext)
public static WorkContext createASCII(String ctx)
WorkContext
containing 8-bit ASCII
context data.
WorkContextMap.put(java.lang.String, weblogic.workarea.WorkContext)
public static WorkContext create(Serializable ctx) throws IOException
WorkContext
containing opaque
Serializable context data. CAUTION: use with care. Data
propagated in this way will be opaque to underlying protocol
implementations and will generally be less efficient.
IOException
WorkContextMap.put(java.lang.String, weblogic.workarea.WorkContext)
public static WorkContext createMutable(Serializable ctx) throws IOException
WorkContext
containing opaque
Serializable context data. The context data is not serialized at the time
of creation of WorkContext but only when the WorkContextMap needs to
propagate the WorkContext entries. This allows the Serializable context
data to be updated even after it is put in the WorkContextMap.
CAUTION: use with care. Data
propagated in this way will be opaque to underlying protocol
implementations and will generally be less efficient.
IOException
WorkContextMap.put(java.lang.String, weblogic.workarea.WorkContext)
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |