Interface Beans


public interface Beans
Provides Bean related operations. The TCK porting package must provide an implementation of this interface which is suitable for the target implementation. This interface may be removed.
Author:
Shane Bryzak, Pete Muir, David Allen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    activate(byte[] bytes)
    Activates a bean instance from the given serialized bytes.
    boolean
    isProxy(Object instance)
    Determines if the object instance is actually a proxy object.
    byte[]
    passivate(Object instance)
    Passivates the object tree starting with the bean instance provided.
  • Field Details

    • PROPERTY_NAME

      static final String PROPERTY_NAME
  • Method Details

    • isProxy

      boolean isProxy(Object instance)
      Determines if the object instance is actually a proxy object.
      Parameters:
      instance - The object which might be a proxy
      Returns:
      true if the object is a proxy
    • passivate

      byte[] passivate(Object instance) throws IOException
      Passivates the object tree starting with the bean instance provided.
      Parameters:
      instance - The bean instance to serialize
      Returns:
      the serialized byte array of the bean instance
      Throws:
      IOException
    • activate

      Object activate(byte[] bytes) throws IOException, ClassNotFoundException
      Activates a bean instance from the given serialized bytes.
      Parameters:
      bytes - The serialized byte stream of a bean instance
      Returns:
      the serialized byte array of the bean instance
      Throws:
      IOException
      ClassNotFoundException