org.jboss.ejb3.cache
Interface StatefulObjectFactory<T>

All Known Implementing Classes:
PassivationGroupContainer

public interface StatefulObjectFactory<T>

Creates and destroys stateful objects. The object returned by create has dependencies injected. The PostConstruct callback, if defined, has been called and the Init callback, if defined, has been called.

Version:
$Revision: $
Author:
Carlo de Wolf

Method Summary
 T create(Class<?>[] initTypes, Object[] initValues)
          Creates a new stateful object by calling it's empty constructor, do injection, calling post-construct and finally calling the appropriate init method.
 void destroy(T obj)
          Perform any cleanup actions on the object, such as calling the pre-destroy callback.
 

Method Detail

create

T create(Class<?>[] initTypes,
         Object[] initValues)
Creates a new stateful object by calling it's empty constructor, do injection, calling post-construct and finally calling the appropriate init method.

Parameters:
initTypes - the argument types for the init method
initValues - the arguments for the init method
Returns:

destroy

void destroy(T obj)
Perform any cleanup actions on the object, such as calling the pre-destroy callback.

Parameters:
obj - the object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.