Interface Factory<R,A>

All Known Implementing Classes:
DelegatorFactory, DelegatorFactoryImpl

public interface Factory<R,A>
Factory interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an instance of R.
  • Method Details

    • getInstance

      R getInstance(A obj)
      Returns an instance of R. This is a basic factory interface that is meant to be extended. Sub-interfaces declare types for A (the getInstance argument), and R (the type returned by getInstance).
      Parameters:
      obj - Optional object to be used in R's construction, or to be used as a selector key
      Returns:
      An instance of R