JBoss Application Server: Parent Aggregator 7.1.0.Final
org.jboss.as.ejb3.cache

Interface StatefulObjectFactory<T>

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      T createInstance()
      Create a new instance of this component.
      void destroyInstance(T instance)
      Destroy an instance of the component.
    • Method Detail

      • createInstance

        T createInstance()
        Create a new instance of this component. This may be invoked by a component interceptor, a client interceptor, or in the course of creating a new client, or in the case of an "eager" singleton, at component start. This method will block until the component is available. If the component fails to start then a runtime exception will be thrown.

        The instance has been injected and post-construct has been called.

        Returns:
        the component instance
      • destroyInstance

        void destroyInstance(T instance)
        Destroy an instance of the component. This method causes all uninjection and pre-destroy lifecycle invocations to occur.
        Parameters:
        instance - the instance to destroy
JBoss Application Server: Parent Aggregator 7.1.0.Final

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