Class Dependency

java.lang.Object
org.exoplatform.container.Dependency
Direct Known Subclasses:
DependencyByName, DependencyByProvider, DependencyByQualifier, DependencyByType

public abstract class Dependency extends Object
This abstract class defines the main parts of a dependency
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Class<?>
    The bind type
    protected final Object
    The key of the corresponding component
  • Constructor Summary

    Constructors
    Constructor
    Description
    Dependency(Object key, Class<?> bindType)
     
    Dependency(Object key, Class<?> bindType, boolean lazy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected abstract org.exoplatform.container.spi.ComponentAdapter<?>
    getAdapter(org.exoplatform.container.ExoContainer holder)
    Gives the ComponentAdapter corresponding to this dependency
     
     
    int
     
    boolean
     
    protected abstract Object
    load(org.exoplatform.container.ExoContainer holder)
    Loads a given dependency from the provided ExoContainer

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • key

      protected final Object key
      The key of the corresponding component
    • bindType

      protected final Class<?> bindType
      The bind type
  • Constructor Details

    • Dependency

      public Dependency(Object key, Class<?> bindType)
    • Dependency

      public Dependency(Object key, Class<?> bindType, boolean lazy)
  • Method Details

    • getKey

      public Object getKey()
      Returns:
      the key
    • getBindType

      public Class<?> getBindType()
      Returns:
      the bindType
    • isLazy

      public boolean isLazy()
      Returns:
      the lazy
    • load

      protected abstract Object load(org.exoplatform.container.ExoContainer holder)
      Loads a given dependency from the provided ExoContainer
    • getAdapter

      protected abstract org.exoplatform.container.spi.ComponentAdapter<?> getAdapter(org.exoplatform.container.ExoContainer holder)
      Gives the ComponentAdapter corresponding to this dependency
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also: