eXo Kernel :: Container Multi-Threaded 2.5.0-CR2

org.exoplatform.container
Class Dependency

java.lang.Object
  extended by 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

Field Summary
protected  Class<?> bindType
          The bind type
protected  Object key
          The key of the corresponding component
 
Constructor Summary
Dependency(Object key, Class<?> bindType)
           
Dependency(Object key, Class<?> bindType, boolean lazy)
           
 
Method Summary
 boolean equals(Object obj)
           
protected abstract  ComponentAdapter<?> getAdapter(ExoContainer holder)
          Gives the ComponentAdapter corresponding to this dependency
 Class<?> getBindType()
           
 Object getKey()
           
 int hashCode()
           
 boolean isLazy()
           
protected abstract  Object load(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 Detail

key

protected final Object key
The key of the corresponding component


bindType

protected final Class<?> bindType
The bind type

Constructor Detail

Dependency

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

Dependency

public Dependency(Object key,
                  Class<?> bindType,
                  boolean lazy)
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(ExoContainer holder)
Loads a given dependency from the provided ExoContainer


getAdapter

protected abstract ComponentAdapter<?> getAdapter(ExoContainer holder)
Gives the ComponentAdapter corresponding to this dependency


hashCode

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

equals

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

eXo Kernel :: Container Multi-Threaded 2.5.0-CR2

Copyright © 2014 eXo Platform SAS. All Rights Reserved.