Interface HeapletFactory


public interface HeapletFactory
Builds Heaplet instances. A HeapletFactory can manage multiple Heaplet types.
  • Method Summary

    Modifier and Type
    Method
    Description
    newInstance(Class<?> type)
    Returns a new Heaplet instance that know how to build the given type.
  • Method Details

    • newInstance

      Heaplet newInstance(Class<?> type)
      Returns a new Heaplet instance that know how to build the given type.
      Parameters:
      type - the type that the created heaplet must support.
      Returns:
      a new Heaplet instance that know how to build the given type, may return null if the given type is not supported by this factory.