Package org.exoplatform.container
Class Dependency
java.lang.Object
org.exoplatform.container.Dependency
- Direct Known Subclasses:
DependencyByName,DependencyByProvider,DependencyByQualifier,DependencyByType
This abstract class defines the main parts of a dependency
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDependency(Object key, Class<?> bindType) Dependency(Object key, Class<?> bindType, boolean lazy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract org.exoplatform.container.spi.ComponentAdapter<?> getAdapter(org.exoplatform.container.ExoContainer holder) Gives theComponentAdaptercorresponding to this dependencyClass<?> getKey()inthashCode()booleanisLazy()protected abstract Objectload(org.exoplatform.container.ExoContainer holder) Loads a given dependency from the providedExoContainer
-
Field Details
-
key
The key of the corresponding component -
bindType
The bind type
-
-
Constructor Details
-
Dependency
-
Dependency
-
-
Method Details
-
getKey
- Returns:
- the key
-
getBindType
- Returns:
- the bindType
-
isLazy
public boolean isLazy()- Returns:
- the lazy
-
load
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() -
equals
-