public class InfrastructureContribution extends org.apache.hivemind.impl.BaseLocatable
Infrastructure
service. Defines
a property of Infrastructure and the value for that property. The infrastructure is setup in a
mode (currently, either "servlet" or "portlet"). Contributions that define a non-null
mode are ignored unless their mode matches the Infrastructure mode.
There are two configuration points that control Infrastructure:
tapestry.Infrastructure
and tapestry.InfrastructureOverride
.
Constructor and Description |
---|
InfrastructureContribution() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMode()
The mode for which this contribution applies, or null if the contribution applies to all
modes.
|
java.lang.Object |
getObject()
The object which should be exposed as the given Infrastructure property.
|
java.lang.String |
getProperty()
The property of the
Infrastructure for which a value is
to be provided. |
boolean |
matchesMode(java.lang.String mode) |
void |
setDeferredObject(DeferredObject deferredObject) |
void |
setMode(java.lang.String mode) |
void |
setProperty(java.lang.String property) |
void |
setValue(java.lang.String value) |
public InfrastructureContribution()
public void setDeferredObject(DeferredObject deferredObject)
public void setValue(java.lang.String value)
public java.lang.Object getObject()
public java.lang.String getMode()
public void setMode(java.lang.String mode)
public java.lang.String getProperty()
Infrastructure
for which a value is
to be provided.public void setProperty(java.lang.String property)
public boolean matchesMode(java.lang.String mode)