org.apache.felix.dm.impl.dependencies
Class DependencyBase

java.lang.Object
  extended by org.apache.felix.dm.impl.dependencies.DependencyBase
All Implemented Interfaces:
Dependency, DependencyActivation
Direct Known Subclasses:
BundleDependencyImpl, ConfigurationDependencyImpl, ResourceDependencyImpl, ServiceDependencyImpl

public abstract class DependencyBase
extends Object
implements Dependency, DependencyActivation


Field Summary
protected  Logger m_logger
           
 
Constructor Summary
DependencyBase(DependencyBase prototype)
           
DependencyBase(Logger logger)
           
 
Method Summary
 boolean isInstanceBound()
          As soon as the instance is created, keep it around, even if this dependency goes away.
 boolean isRequired()
          Returns true if this a required dependency.
 void setIsInstanceBound(boolean isInstanceBound)
           
protected  void setIsRequired(boolean isRequired)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.felix.dm.Dependency
createCopy, getAutoConfigInstance, getAutoConfigName, getAutoConfigType, getProperties, invokeAdded, invokeRemoved, isAutoConfig, isAvailable, isPropagated
 
Methods inherited from interface org.apache.felix.dm.DependencyActivation
start, stop
 

Field Detail

m_logger

protected final Logger m_logger
Constructor Detail

DependencyBase

public DependencyBase(Logger logger)

DependencyBase

public DependencyBase(DependencyBase prototype)
Method Detail

isRequired

public boolean isRequired()
Description copied from interface: Dependency
Returns true if this a required dependency. Required dependencies are dependencies that must be available before the component can be activated.

Specified by:
isRequired in interface Dependency
Returns:
true if the dependency is required

setIsRequired

protected void setIsRequired(boolean isRequired)

isInstanceBound

public final boolean isInstanceBound()
Description copied from interface: Dependency
As soon as the instance is created, keep it around, even if this dependency goes away.

Specified by:
isInstanceBound in interface Dependency
Returns:
true if the dependency is instance bound

setIsInstanceBound

public final void setIsInstanceBound(boolean isInstanceBound)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.