com.sun.ejb.spi.sfsb.store
Interface SFSBUUIDUtil


public interface SFSBUUIDUtil

Author:
lwhite

Method Summary
 Object byteArrayToKey(byte[] array, int startIndex, int len)
          Return the sessionKey that represents the sessionKey.
 Object createSessionKey()
          Create and return the sessionKey.
 byte[] keyToByteArray(Object sessionKey)
          Called from the Container before publishing an IOR.
 

Method Detail

createSessionKey

Object createSessionKey()
Create and return the sessionKey.

Returns:
the sessionKey object

keyToByteArray

byte[] keyToByteArray(Object sessionKey)
Called from the Container before publishing an IOR. The method must convert the sessionKey into a byte[]

Returns:
A byte[] representation of the key. The byte[] could be created using serialization.

byteArrayToKey

Object byteArrayToKey(byte[] array,
                      int startIndex,
                      int len)
Return the sessionKey that represents the sessionKey. This has to be super efficient as the container calls this method on every invocation. Two objects obtained from identical byte[] must satisfy both o1.equals(o2) and o1.hashCode() == o2.hashCode()

Returns:
the sessionKey object


Copyright © 2012 GlassFish Community. All Rights Reserved.