org.apache.tapestry.services.impl
Class InfrastructureContribution

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.services.impl.InfrastructureContribution
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder

public class InfrastructureContribution
extends org.apache.hivemind.impl.BaseLocatable

A contribution to the 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.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
InfrastructureContribution()
           
 
Method Summary
 String getMode()
          The mode for which this contribution applies, or null if the contribution applies to all modes.
 Object getObject()
          The object which should be exposed as the given Infrastructure property.
 String getProperty()
          The property of the Infrastructurefor which a value is to be provided.
 boolean matchesMode(String mode)
           
 void setDeferredObject(DeferredObject deferredObject)
           
 void setMode(String mode)
           
 void setProperty(String property)
           
 void setValue(String value)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

InfrastructureContribution

public InfrastructureContribution()
Method Detail

setDeferredObject

public void setDeferredObject(DeferredObject deferredObject)

setValue

public void setValue(String value)

getObject

public Object getObject()
The object which should be exposed as the given Infrastructure property.


getMode

public String getMode()
The mode for which this contribution applies, or null if the contribution applies to all modes.


setMode

public void setMode(String mode)

getProperty

public String getProperty()
The property of the Infrastructurefor which a value is to be provided.


setProperty

public void setProperty(String property)

matchesMode

public boolean matchesMode(String mode)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.