WildFly: Parent Aggregator 8.0.0.Beta1
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
WildFly: Parent Aggregator 8.0.0.Beta1

Copyright © 2013 JBoss by Red Hat. All rights reserved.