Uses of Interface
org.apache.tapestry5.commons.MappedConfiguration
-
-
Uses of MappedConfiguration in org.apache.tapestry5.beanvalidator.modules
Methods in org.apache.tapestry5.beanvalidator.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
BeanValidatorModule. contributeServiceOverride(MappedConfiguration<java.lang.Class<?>,java.lang.Object> configuration, FieldValidatorDefaultSource source)
-
Uses of MappedConfiguration in org.apache.tapestry5.commons.internal
Methods in org.apache.tapestry5.commons.internal with parameters of type MappedConfiguration Modifier and Type Method Description static void
BasicTypeCoercions. provideBasicTypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Provides the basic type coercions to aMappedConfiguration
instance.static void
BasicDataTypeAnalyzers. provideDefaultDataTypeAnalyzers(MappedConfiguration<java.lang.Class,java.lang.String> configuration)
Maps property types to data type names: String --> text Number --> number Enum --> enum Boolean --> boolean Date --> datestatic void
BasicTypeCoercions. provideJSR310TypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Provides the basic type coercions for JSR310 (java.time.*) to aConfiguration
instance. -
Uses of MappedConfiguration in org.apache.tapestry5.commons.services
Methods in org.apache.tapestry5.commons.services with parameters of type MappedConfiguration Modifier and Type Method Description static <S,T>
voidCoercionTuple. add(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration, java.lang.Class<S> sourceType, java.lang.Class<T> targetType, Coercion<S,T> coercion)
Convenience method to create a coercion tuple using CoercionTuple.create(Class, Class, Coercion) and add it to a MappedConfiguration in a single step.static <S,T>
voidCoercionTuple. override(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration, java.lang.Class<S> sourceType, java.lang.Class<T> targetType, Coercion<S,T> coercion)
Convenience method to create a coercion tuple using CoercionTuple.create(Class, Class, Coercion) and override a matching one in a MappedConfiguration in a single step. -
Uses of MappedConfiguration in org.apache.tapestry5.hibernate.modules
Methods in org.apache.tapestry5.hibernate.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
HibernateCoreModule. contributeFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.String> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.hibernate.web.modules
Methods in org.apache.tapestry5.hibernate.web.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
HibernateModule. contributeApplicationStateManager(MappedConfiguration<java.lang.Class,ApplicationStateContribution> configuration, boolean entitySessionStatePersistenceStrategyEnabled, HibernateSessionSource sessionSource)
ContributesApplicationStateContribution
s for all registered Hibernate entity classes.void
HibernateModule. contributeApplicationStatePersistenceStrategySource(MappedConfiguration<java.lang.String,ApplicationStatePersistenceStrategy> configuration)
Contributes the following strategy: entity Stores the id of the entity and reloads from theSession
static void
HibernateModule. contributeFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.String> configuration)
static void
HibernateModule. contributePersistentFieldManager(MappedConfiguration<java.lang.String,PersistentFieldStrategy> configuration)
Contributes the following: entity Stores the id of the entity and reloads from theSession
static void
HibernateModule. contributeValueEncoderSource(MappedConfiguration<java.lang.Class,ValueEncoderFactory> configuration, boolean provideEncoders, HibernateSessionSource sessionSource, org.hibernate.Session session, TypeCoercer typeCoercer, PropertyAccess propertyAccess, LoggerSource loggerSource)
ContributesValueEncoderFactory
s for all registered Hibernate entity classes.static void
HibernateModule. provideInjectableSessionObject(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, org.hibernate.Session session)
-
Uses of MappedConfiguration in org.apache.tapestry5.http.internal
Methods in org.apache.tapestry5.http.internal with parameters of type MappedConfiguration Modifier and Type Method Description void
AbstractContributionDef. contribute(ModuleBuilderSource moduleSource, ServiceResources resources, MappedConfiguration configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.http.modules
Methods in org.apache.tapestry5.http.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
TapestryHttpModule. contributeFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
Contributes factory defaults that may be overridden.static void
TapestryHttpModule. contributeSessionPersistedObjectAnalyzer(MappedConfiguration<java.lang.Class,SessionPersistedObjectAnalyzer> configuration)
Identifies String, Number and Boolean as immutable objects, a catch-all handler for Object (that understands theImmutableSessionPersistedObject
annotation), and a handler forOptimizedSessionPersistedObject
.static void
TapestryHttpModule. contributeTypeCoercer(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.internal.test
Methods in org.apache.tapestry5.internal.test with parameters of type MappedConfiguration Modifier and Type Method Description static void
PageTesterModule. setupTestableOverrides(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, TestableRequest request, TestableResponse response, ObjectLocator locator)
-
Uses of MappedConfiguration in org.apache.tapestry5.ioc.def
Methods in org.apache.tapestry5.ioc.def with parameters of type MappedConfiguration Modifier and Type Method Description void
ContributionDef. contribute(ModuleBuilderSource moduleSource, ServiceResources resources, MappedConfiguration configuration)
Performs the work needed to contribute into the mapped configuration. -
Uses of MappedConfiguration in org.apache.tapestry5.ioc.internal
Classes in org.apache.tapestry5.ioc.internal that implement MappedConfiguration Modifier and Type Class Description class
ValidatingMappedConfigurationWrapper<K,V>
A wrapper around a Map that provides theMappedConfiguration
interface, and provides two forms of validation for mapped configurations: If either key or value is null, then a warning is logged If the key has previously been stored (by some otherContributionDef
, then a warning is logged When a warning is logged, the key/value pair is not added to the delegate.Methods in org.apache.tapestry5.ioc.internal with parameters of type MappedConfiguration Modifier and Type Method Description void
ContributionDefImpl. contribute(ModuleBuilderSource moduleSource, ServiceResources resources, MappedConfiguration configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.ioc.modules
Methods in org.apache.tapestry5.ioc.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
TapestryIOCModule. provideBasicTypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Contributes a set of standard type coercions to theTypeCoercer
service: Object to String Object to Boolean String to Double String to BigDecimal BigDecimal to Double Double to BigDecimal String to BigInteger BigInteger to Long String to Long Long to Byte Long to Short Long to Integer Double to Long Double to Float Float to Double Long to Double String to Boolean ("false" is always false, other non-blank strings are true) Number to Boolean (true if number value is non zero) Null to Boolean (always false) Collection to Boolean (false if empty) Object[] to List primitive[] to List Object to List (by wrapping as a singleton list) String to File String toTimeInterval
TimeInterval
to Long Object to Object[] (wrapping the object as an array) Collection to Object[] (via the toArray() method)Flow
to ListFlow
to Boolean (false if empty)static void
TapestryIOCModule. provideJSR10TypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Contributes coercions to and from Java Time API (JSR 310) classes.static void
TapestryIOCModule. providePerthreadScope(MappedConfiguration<java.lang.String,ServiceLifecycle> configuration)
Contributes the "perthread" scope.static void
TapestryIOCModule. setupDefaultSymbols(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.ioc.test
Methods in org.apache.tapestry5.ioc.test that return MappedConfiguration Modifier and Type Method Description protected <K,V>
MappedConfiguration<K,V>IOCTestCase. mockMappedConfiguration()
Deprecated. -
Uses of MappedConfiguration in org.apache.tapestry5.jpa.modules
Methods in org.apache.tapestry5.jpa.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
JpaModule. provideApplicationStateContributions(MappedConfiguration<java.lang.Class,ApplicationStateContribution> configuration, EntityManagerSource entityManagerSource, boolean entitySessionStatePersistenceStrategyEnabled)
void
JpaModule. provideApplicationStatePersistenceStrategies(MappedConfiguration<java.lang.String,ApplicationStatePersistenceStrategy> configuration)
static void
JpaModule. provideEntityPersistentFieldStrategies(MappedConfiguration<java.lang.String,PersistentFieldStrategy> configuration)
static void
JpaModule. provideFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.String> configuration)
static void
JpaModule. provideValueEncoders(MappedConfiguration<java.lang.Class,ValueEncoderFactory> configuration, boolean provideEncoders, EntityManagerSource entityManagerSource, EntityManagerManager entityManagerManager, TypeCoercer typeCoercer, PropertyAccess propertyAccess, LoggerSource loggerSource)
-
Uses of MappedConfiguration in org.apache.tapestry5.json.modules
Methods in org.apache.tapestry5.json.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
JSONModule. provideCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.kaptcha.modules
Methods in org.apache.tapestry5.kaptcha.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
KaptchaModule. factoryDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.modules
Methods in org.apache.tapestry5.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
AssetsModule. addApplicationAndTapestryMappings(MappedConfiguration<java.lang.String,java.lang.String> configuration, java.lang.String appPackage)
static void
AssetsModule. addMappingsForLibraryVirtualFolders(MappedConfiguration<java.lang.String,java.lang.String> configuration, ComponentClassResolver resolver)
static void
InternalModule. configureControlledPackagesFromComponentClassResolver(MappedConfiguration<java.lang.String,ControlledPackageType> configuration, ComponentClassResolver resolver)
Contributes packages identified byComponentClassResolver.getControlledPackageMapping()
.void
AssetsModule. configureStandardAssetFactories(MappedConfiguration<java.lang.String,AssetFactory> configuration, AssetFactory contextAssetFactory, AssetFactory classpathAssetFactory)
static void
Bootstrap4Module. contributeApplicationDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
void
TapestryModule. contributeApplicationStatePersistenceStrategySource(MappedConfiguration<java.lang.String,ApplicationStatePersistenceStrategy> configuration, ApplicationStatePersistenceStrategy sessionStategy)
Contributes the default "session" strategy.static void
TapestryModule. contributeBindingSource(MappedConfiguration<java.lang.String,BindingFactory> configuration, BindingFactory propBindingFactory, BindingFactory messageBindingFactory, BindingFactory validateBindingFactory, BindingFactory translateBindingFactory, BindingFactory assetBindingFactory, BindingFactory nullFieldStrategyBindingFactory, BindingFactory contextBindingFactory, BindingFactory symbolBindingFactory)
Contributes the factory for several built-in binding prefixes ("asset", "block", "component", "literal", prop", "nullfieldstrategy", "message", "validate", "translate", "var").void
TapestryModule. contributeComponentEventResultProcessor(ComponentEventResultProcessor componentInstanceProcessor, MappedConfiguration<java.lang.Class,ComponentEventResultProcessor> configuration)
Contributes handlers for the following types: Object Failure case, added to provide a more useful exception messageLink
Sends a redirect to the link (which is typically a page render link) String Sends a page render redirect Class Interpreted as the class name of a page, sends a page render render redirect (this is more refactoring safe than the page name)Component
A page's root component (though a non-root component will work, but will generate a warning).static void
TapestryModule. contributeDefaultDataTypeAnalyzer(MappedConfiguration<java.lang.Class,java.lang.String> configuration)
Maps property types to data type names: String --> text Number --> number Enum --> enum Boolean --> boolean Date --> datestatic void
PageLoadModule. contributeFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
Contributes factory defaults that may be overridden.static void
TapestryModule. contributeFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
Contributes factory defaults that may be overridden.static void
TapestryModule. contributeHiddenFieldLocationRules(MappedConfiguration<java.lang.String,RelativeElementPosition> configuration)
Determines positioning of hidden fields relative to other elements (this is needed byFormFragment
and others.static void
TapestryModule. contributeMetaWorker(MappedConfiguration<java.lang.Class,MetaDataExtractor> configuration)
static void
TapestryModule. contributeNullFieldStrategySource(MappedConfiguration<java.lang.String,NullFieldStrategy> configuration)
Contributes strategies accessible via theNullFieldStrategySource
service.void
TapestryModule. contributeObjectRenderer(MappedConfiguration<java.lang.Class,ObjectRenderer> configuration, ObjectRenderer locationRenderer, TypeCoercer typeCoercer)
Contributes a default object renderer for type Object, plus specialized renderers forRequest
,Location
,ComponentResources
,EventContext
,AvailableValues
, List, and Object[].void
TapestryModule. contributePersistentFieldManager(MappedConfiguration<java.lang.String,PersistentFieldStrategy> configuration, Request request, PersistentFieldStrategy clientStrategy)
static void
TapestryModule. contributeTemplateParser(MappedConfiguration<java.lang.String,java.net.URL> config)
static void
TapestryModule. contributeTranslatorSource(MappedConfiguration<java.lang.Class,Translator> configuration, NumericTranslatorSupport support, Html5Support html5Support)
Contributes the basic set of translators: string byte short integer long float double BigInteger BigDecimalstatic void
TapestryModule. contributeTypeCoercer(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration, ObjectLocator objectLocator, ThreadLocale threadLocale, AssetSource assetSource, DynamicTemplateParser dynamicTemplateParser)
Adds coercions: String toSelectModel
Map toSelectModel
Collection toGridDataSource
null toGridDataSource
List toSelectModel
ComponentResourcesAware
(typically, a component) toComponentResources
ComponentResources
toPropertyOverrides
String toRenderable
Renderable
toBlock
String toDateFormat
String toResource
(viaAssetSource.resourceForPath(String)
)Renderable
toRenderCommand
String toPattern
String toDateFormat
Resource
toDynamicTemplate
Asset
toResource
ValueEncoder
toValueEncoderFactory
static void
TapestryModule. contributeValueEncoderSource(MappedConfiguration<java.lang.Class,java.lang.Object> configuration)
ContributesValueEncoder
s orValueEncoderFactory
s for types: Object String Enumvoid
TapestryModule. defaultValueLabelProviders(MappedConfiguration<java.lang.Class,ValueLabelProvider> configuration)
void
AssetsModule. disableCompressionForImageTypes(MappedConfiguration<java.lang.String,java.lang.Boolean> configuration)
Disables compression for the following content types: image/jpeg image/gif image/png image/svg+xml application/x-shockwave-flash application/font-woff application/x-font-ttf application/vnd.ms-fontobjectstatic void
TapestryModule. gracefullyHandleFormsRequirePostException(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, boolean productionMode)
static void
JavaScriptModule. overrideGlyphiconWithFontAwesomeIfNeeded(MappedConfiguration<java.lang.Class,java.lang.Class> configuration, Compatibility compatibility)
Overrides theGlyphicon
component withFontAwesomeIcon
if Bootstrap 3 isn't enabled.static void
TapestryModule. productionModeOverrides(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, boolean productionMode)
In production mode, overrideUpdateListenerHub
to be an empty placeholder.static void
TapestryModule. provideBaseAjaxComponentEventResultProcessors(MappedConfiguration<java.lang.Class,ComponentEventResultProcessor> configuration)
Contributes handlers for the following types: Object Failure case, added to provide more useful exception messageRenderCommand
Typically, aBlock
Component
Renders the component and its body (unless its a page, in which case a redirect JSON response is sent)JSONObject
orJSONArray
The JSONObject is returned as a text/javascript responseStreamResponse
The stream response is sent as the actual response String Interprets the value as a logical page name and sends a client response to redirect to that pageLink
Sends a JSON response to redirect to the linkClass
Treats the class as a page class and sends a redirect for a page render for that pageMultiZoneUpdate
Sends a single JSON response to update the content of multiple zones In most cases, when you want to support a new type, you should convert it to one of the built-in supported types (such asRenderCommand
.static void
AssetsModule. provideBuiltinAssetDispatchers(MappedConfiguration<java.lang.String,AssetRequestHandler> configuration, AssetFactory contextAssetFactory, StackAssetRequestHandler stackAssetRequestHandler, ClasspathAssetAliasManager classpathAssetAliasManager, ResourceStreamer streamer, AssetSource assetSource, ClasspathAssetProtectionRule classpathAssetProtectionRule)
Contributes an handler for each mapped classpath alias, as well handlers for context assets and stack assets (combinedJavaScriptStack
files).static void
JavaScriptModule. provideBuiltinJavaScriptStacks(MappedConfiguration<java.lang.String,JavaScriptStack> configuration, JavaScriptStack coreStack, JavaScriptStack internalStack)
Contributes the "core" and "internal"JavaScriptStack
sstatic void
JavaScriptModule. setupApplicationCatalogModules(MappedConfiguration<java.lang.String,java.lang.Object> configuration, LocalizationSetter localizationSetter, ComponentMessagesSource messagesSource, ResourceChangeTracker resourceChangeTracker, boolean compactJSON)
static void
JavaScriptModule. setupBaseModules(MappedConfiguration<java.lang.String,java.lang.Object> configuration, Resource underscoreShim, Resource jqueryShim, Resource typeahead, Resource moment, Resource transition, Resource bootstrapUtil, Compatibility compatibility)
static void
Bootstrap4Module. setupCompatibilityDefaults(MappedConfiguration<Trait,java.lang.Boolean> configuration)
static void
JavaScriptModule. setupCompatibilityDefaults(MappedConfiguration<Trait,java.lang.Boolean> configuration)
static void
NoBootstrapModule. setupCompatibilityDefaults(MappedConfiguration<Trait,java.lang.Boolean> configuration)
static void
TapestryModule. setupCoreFrameworkValidators(MappedConfiguration<java.lang.String,Validator> configuration)
Contributes the basic set of validators: required minlength maxlength min max regexp email nonevoid
AssetsModule. setupDefaultContentTypeMappings(MappedConfiguration<java.lang.String,java.lang.String> configuration)
Adds content types: css text/css js text/javascript jpg, jpeg image/jpeg gif image/gif png image/png svg image/svg+xml swf application/x-shockwave-flash woff application/font-woff tff application/x-font-ttf eot application/vnd.ms-fontobjectstatic void
JavaScriptModule. setupFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
static void
JavaScriptModule. setupFoundationFramework(MappedConfiguration<java.lang.String,java.lang.Object> configuration, java.lang.String provider, Resource domPrototype, Resource domJQuery)
static void
AssetsModule. setupSymbols(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.mongodb.modules
Methods in org.apache.tapestry5.mongodb.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
MongodbModule. contributeFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.String> configuration)
static void
MongodbModule. contributeTypeCoercer(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.rest.jackson.modules
Methods in org.apache.tapestry5.rest.jackson.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
RestJacksonModule. contributeComponentEventResultProcessor(MappedConfiguration<java.lang.Class,ComponentEventResultProcessor> configuration, MappedEntityManager mappedEntityManager, Response response, ObjectMapperSource objectMapperSource, java.lang.String outputEncoding)
Adds a (entity class, JacksonComponentEventResultProcessor) for each entity class returned byMappedEntityManager.getEntities()
. -
Uses of MappedConfiguration in org.apache.tapestry5.spring.modules
Methods in org.apache.tapestry5.spring.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
SpringModule. defaultExternalSpringContextOff(MappedConfiguration<java.lang.String,java.lang.Object> configuration)
-
Uses of MappedConfiguration in org.apache.tapestry5.upload.modules
Methods in org.apache.tapestry5.upload.modules with parameters of type MappedConfiguration Modifier and Type Method Description static void
UploadModule. contributeFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.String> configuration)
-