org.apache.felix.dm.impl.dependencies
Class DependencyBase
java.lang.Object
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
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 |
m_logger
protected final Logger m_logger
DependencyBase
public DependencyBase(Logger logger)
DependencyBase
public DependencyBase(DependencyBase prototype)
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 © 2011 Apache Software Foundation. All Rights Reserved.