|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.impl.AbstractExtensionPoint
org.apache.hivemind.impl.ConfigurationPointImpl
Implementation of the ConfigurationPoint
interface; a
container for Contribution
s.
Constructor Summary | |
ConfigurationPointImpl()
|
Method Summary | |
void |
addContribution(Contribution c)
|
boolean |
canElementsBeMapped()
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 . |
Occurances |
getExpectedCount()
|
java.util.Map |
getMappedElements()
Returns the contributed elements as an unmodifiable Map . |
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 canElementsBeMapped()
ConfigurationPoint
canElementsBeMapped
in interface ConfigurationPoint
public java.util.Map getMappedElements()
Map
. Internally, a proxy to the
real map is returned, such that the real map may not be constructed until actually needed.
getMappedElements
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 |