TorqueBox 3.1.2

org.torquebox.core.pool
Interface InstanceFactory<T>

Type Parameters:
T - The instance type.
All Known Implementing Classes:
RubyRuntimeFactory

public interface InstanceFactory<T>

Generic interface for simple factories.

Author:
Bob McWhirter

Method Summary
 T createInstance(String contextInfo)
          Create an instance.
 void destroyInstance(T instance)
           
 

Method Detail

createInstance

T createInstance(String contextInfo)
                 throws Exception
Create an instance. The contents of this method must be thread-safe.

Returns:
The newly-created instance.
Throws:
Exception - if an error occurred attempting to create the instance.

destroyInstance

void destroyInstance(T instance)

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.