|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.impl.BaseLocatable org.apache.hivemind.impl.AbstractExtensionPoint org.apache.hivemind.impl.ConfigurationPointImpl
public final class ConfigurationPointImpl
Implementation of the ConfigurationPoint
interface; a
container for Contribution
s.
Constructor Summary | |
---|---|
ConfigurationPointImpl()
|
Method Summary | |
---|---|
void |
addContribution(Contribution c)
|
boolean |
areElementsMappable()
Returns true if the elements contributed to this configuration point can be retrieved as a Map . |
protected void |
extendDescription(ToStringBuilder builder)
Implemented in subclasses to provide details about subclass properties. |
int |
getContributionCount()
Returns the number of contributions; it is expected that each top-level Element in each Contribution will convert to one element
instance; the value returned is the total number of top-level elements in all contributed
Extensions. |
Schema |
getContributionsSchema()
Returns the Schema for contributions to the configuration point (which may be null if the point does not define a schema for contributions). |
java.util.List |
getElements()
Returns the contributed elements as an unmodifiable List . |
java.util.Map |
getElementsAsMap()
Returns the contributed elements as an unmodifiable Map . |
Occurances |
getExpectedCount()
|
Schema |
getSchema()
|
void |
setContributionsSchema(Schema schema)
|
void |
setExpectedCount(Occurances occurances)
|
void |
setShutdownCoordinator(ShutdownCoordinator coordinator)
|
Methods inherited from class org.apache.hivemind.impl.AbstractExtensionPoint |
---|
getErrorLog, getExtensionPointId, getLog, getModule, setExtensionPointId, setModule, setVisibility, toString, visibleToModule |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.hivemind.internal.ExtensionPoint |
---|
getErrorLog, getExtensionPointId, getLog, getModule, visibleToModule |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Constructor Detail |
---|
public ConfigurationPointImpl()
Method Detail |
---|
protected void extendDescription(ToStringBuilder builder)
AbstractExtensionPoint
extendDescription
in class AbstractExtensionPoint
public int getContributionCount()
Element
in each Contribution
will convert to one element
instance; the value returned is the total number of top-level elements in all contributed
Extensions.
public void addContribution(Contribution c)
public Occurances getExpectedCount()
public void setExpectedCount(Occurances occurances)
public java.util.List getElements()
List
. Internally, a proxy to the
real list is returned, such that the real list may not be constructed until actually needed.
getElements
in interface ConfigurationPoint
public boolean areElementsMappable()
ConfigurationPoint
retrieved as a Map
. The contributions in the map are keyed on
an attribute as specified by the contributions schema. Thus, as a requirement, this
configuration point must have a defined schema, which in turn must support
keying
of all valid instances.
areElementsMappable
in interface ConfigurationPoint
public java.util.Map getElementsAsMap()
Map
. Internally, a proxy to the
real map is returned, such that the real map may not be constructed until actually needed.
getElementsAsMap
in interface ConfigurationPoint
public Schema getSchema()
public void setContributionsSchema(Schema schema)
public Schema getContributionsSchema()
ConfigurationPoint
getContributionsSchema
in interface ConfigurationPoint
public void setShutdownCoordinator(ShutdownCoordinator coordinator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |