public final class ConfigurationPointImpl extends AbstractExtensionPoint implements ConfigurationPoint
ConfigurationPoint
interface; a
container for Contribution
s.Constructor and Description |
---|
ConfigurationPointImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
getErrorLog, getExtensionPointId, getLog, getModule, setExtensionPointId, setModule, setVisibility, toString, visibleToModule
getLocation, setLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getErrorLog, getExtensionPointId, getLog, getModule, visibleToModule
getLocation
public ConfigurationPointImpl()
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 void setContributionsSchema(Schema schema)
public Schema getContributionsSchema()
ConfigurationPoint
getContributionsSchema
in interface ConfigurationPoint
public void setShutdownCoordinator(ShutdownCoordinator coordinator)