Interface InstanceProvider

All Superinterfaces:
org.ocpsoft.common.pattern.Weighted

public interface InstanceProvider extends org.ocpsoft.common.pattern.Weighted
Responsible for performing object instance lookups. See Instances.lookup(Class) for convenient access to this API.
Author:
Lincoln Baxter, III
  • Method Summary

    Modifier and Type
    Method
    Description
    getInstance(Class<?> type)
    Get an instance of the given Class type.

    Methods inherited from interface org.ocpsoft.common.pattern.Weighted

    priority
  • Method Details

    • getInstance

      Object getInstance(Class<?> type)
      Get an instance of the given Class type. Return null if no instance could be retrieved.