de.cau.cs.kieler.core.alg
Interface IFactory<T>

Type Parameters:
T - type of instances that are created by this factory
All Known Implementing Classes:
DefaultFactory

public interface IFactory<T>

Interface for factories of class instances.

Rating red

Method Summary
 T create()
          Create an instance of the type that is managed by this factory.
 void destroy(T obj)
          Destroy a given instance by freeing all resources that are contained.
 

Method Detail

create

T create()
Create an instance of the type that is managed by this factory.

Returns:
a new instance

destroy

void destroy(T obj)
Destroy a given instance by freeing all resources that are contained.

Parameters:
obj - the instance to destroy