org.databene.model.depend
Class AbstractDependent<E extends Dependent<E>>

java.lang.Object
  extended by org.databene.model.depend.AbstractDependent<E>
Type Parameters:
E -
All Implemented Interfaces:
Dependent<E>
Direct Known Subclasses:
DefaultDependent

public abstract class AbstractDependent<E extends Dependent<E>>
extends java.lang.Object
implements Dependent<E>

Abstract class that provides partial featur implementation of the Dependent interface.

Since:
0.3.04
Author:
Volker Bergmann

Field Summary
protected  java.util.List<org.databene.model.depend.ProviderInfo<E>> providers
           
 
Constructor Summary
AbstractDependent(E... requiredProviders)
           
 
Method Summary
 void addOptionalProvider(E provider)
           
 void addRequiredProvider(E provider)
           
 int countProviders()
           
 E getProvider(int index)
           
 boolean requiresProvider(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providers

protected java.util.List<org.databene.model.depend.ProviderInfo<E extends Dependent<E>>> providers
Constructor Detail

AbstractDependent

public AbstractDependent(E... requiredProviders)
Method Detail

addRequiredProvider

public void addRequiredProvider(E provider)

addOptionalProvider

public void addOptionalProvider(E provider)

countProviders

public int countProviders()
Specified by:
countProviders in interface Dependent<E extends Dependent<E>>

getProvider

public E getProvider(int index)
Specified by:
getProvider in interface Dependent<E extends Dependent<E>>

requiresProvider

public boolean requiresProvider(int index)
Specified by:
requiresProvider in interface Dependent<E extends Dependent<E>>


Copyright © 2010. All Rights Reserved.