Package org.exoplatform.container
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- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Constructor Summary
Constructors Constructor Description Dependency(Object key, Class<?> bindType)Dependency(Object key, Class<?> bindType, boolean lazy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)protected abstract org.exoplatform.container.spi.ComponentAdapter<?>getAdapter(org.exoplatform.container.ExoContainer holder)Gives theComponentAdaptercorresponding to this dependencyClass<?>getBindType()ObjectgetKey()inthashCode()booleanisLazy()protected abstract Objectload(org.exoplatform.container.ExoContainer holder)Loads a given dependency from the providedExoContainer
-
-
-
Method Detail
-
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 providedExoContainer
-
getAdapter
protected abstract org.exoplatform.container.spi.ComponentAdapter<?> getAdapter(org.exoplatform.container.ExoContainer holder)
Gives theComponentAdaptercorresponding to this dependency
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
-