Return-Path: Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: (qmail 97156 invoked from network); 13 Mar 2009 21:20:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 21:20:29 -0000 Received: (qmail 57050 invoked by uid 500); 13 Mar 2009 21:20:29 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 57021 invoked by uid 500); 13 Mar 2009 21:20:28 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 57012 invoked by uid 99); 13 Mar 2009 21:20:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 14:20:28 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 21:20:23 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3002423888CA; Fri, 13 Mar 2009 21:20:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r753424 [1/2] - in /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services: ./ ajax/ Date: Fri, 13 Mar 2009 21:20:00 -0000 To: commits@tapestry.apache.org From: hlship@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090313212001.3002423888CA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hlship Date: Fri Mar 13 21:19:57 2009 New Revision: 753424 URL: http://svn.apache.org/viewvc?rev=753424&view=rev Log: TAP5-575: Add svn:eol-style=native to source files Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Ajax.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Alias.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AliasContribution.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AliasManager.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationGlobals.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializer.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializerFilter.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStateContribution.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStateCreator.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStateManager.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStatePersistenceStrategy.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStatePersistenceStrategySource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AssetFactory.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AssetPathConverter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AssetSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BaseURLSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanBlockContribution.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanBlockOverrideSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanBlockSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanEditContext.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanModelSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BindingFactory.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BindingSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClassTransformation.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClasspathAssetAliasManager.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClasspathProvider.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClientBehaviorSupport.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClientDataEncoder.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClientDataSink.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassResolver.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassTransformWorker.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClasses.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentDefaultProvider.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventLinkEncoder.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventRequestFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventRequestHandler.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventRequestParameters.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventResultProcessor.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentLayer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentMessages.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentMethodAdvice.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentMethodInvocation.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentRequestFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentRequestHandler.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentTemplates.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Context.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextPathEncoder.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextProvider.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextValueEncoder.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Core.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/DataTypeAnalyzer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/DelegatingRequest.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Dispatcher.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Environment.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/EnvironmentalAccess.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/EnvironmentalShadowBuilder.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ExceptionReporter.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldTranslatorSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldValidatorDefaultSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldValidatorSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FormSupport.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Heartbeat.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HiddenFieldLocationRules.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestFilter.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestHandler.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InjectionProvider.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationEventHub.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationListener.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LibraryMapping.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LinkCreationHub.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LinkCreationListener.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupRenderer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupRendererFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupWriterFactory.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MetaDataLocator.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MethodFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/NullFieldStrategySource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ObjectRenderer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageDocumentGenerator.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageRenderRequestFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageRenderRequestHandler.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageRenderRequestParameters.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PartialMarkupRenderer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PartialMarkupRendererFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldBundle.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldChange.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldStrategy.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PropertyConduitSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PropertyEditContext.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PropertyOutputContext.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RelativeElementPosition.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Request.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestExceptionHandler.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestGlobals.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestHandler.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ResourceDigestGenerator.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Response.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ResponseCompressionAnalyzer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ResponseRenderer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ServletApplicationInitializer.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ServletApplicationInitializerFilter.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Session.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/SessionPersistedObjectAnalyzer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/StackTraceElementAnalyzer.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/StackTraceElementClassConstants.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Traditional.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TransformConstants.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TransformMethodSignature.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TransformUtils.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/TranslatorSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/URLEncoder.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/UpdateListener.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/UpdateListenerHub.java (contents, props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ValidationConstraintGenerator.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ValidationMessagesSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ValueEncoderFactory.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ValueEncoderSource.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ajax/CombinedRenderCommand.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ajax/MultiZoneUpdateEventResultProcessor.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ajax/SetupZonesFilter.java (props changed) tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ajax/SingleZonePartialRendererFilter.java (props changed) Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Ajax.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Alias.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AliasContribution.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AliasManager.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationGlobals.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializer.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializer.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializer.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializer.java Fri Mar 13 21:19:57 2009 @@ -1,28 +1,28 @@ -// Copyright 2006, 2008 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import org.apache.tapestry5.ioc.annotations.UsesOrderedConfiguration; - -/** - * Service interface for initializing Tapestry for the application. The service is a {@linkplain - * org.apache.tapestry5.ioc.services.PipelineBuilder pipeline}, into which {@linkplain - * org.apache.tapestry5.services.ApplicationInitializerFilter filters} may be contributed. - */ -@UsesOrderedConfiguration(ApplicationInitializerFilter.class) -public interface ApplicationInitializer -{ - void initializeApplication(Context context); -} +// Copyright 2006, 2008 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import org.apache.tapestry5.ioc.annotations.UsesOrderedConfiguration; + +/** + * Service interface for initializing Tapestry for the application. The service is a {@linkplain + * org.apache.tapestry5.ioc.services.PipelineBuilder pipeline}, into which {@linkplain + * org.apache.tapestry5.services.ApplicationInitializerFilter filters} may be contributed. + */ +@UsesOrderedConfiguration(ApplicationInitializerFilter.class) +public interface ApplicationInitializer +{ + void initializeApplication(Context context); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializer.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializerFilter.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializerFilter.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializerFilter.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializerFilter.java Fri Mar 13 21:19:57 2009 @@ -1,25 +1,25 @@ -// Copyright 2006 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import org.apache.tapestry5.services.Context; - -/** - * Filter interface for {@link ApplicationInitializer}. - */ -public interface ApplicationInitializerFilter -{ - void initializeApplication(Context context, ApplicationInitializer initializer); -} +// Copyright 2006 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import org.apache.tapestry5.services.Context; + +/** + * Filter interface for {@link ApplicationInitializer}. + */ +public interface ApplicationInitializerFilter +{ + void initializeApplication(Context context, ApplicationInitializer initializer); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationInitializerFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStateContribution.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStateCreator.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStateManager.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStatePersistenceStrategy.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ApplicationStatePersistenceStrategySource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AssetFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AssetPathConverter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/AssetSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BaseURLSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanBlockContribution.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanBlockOverrideSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanBlockSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanEditContext.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BeanModelSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BindingFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/BindingSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClassTransformation.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClasspathAssetAliasManager.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClasspathProvider.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClientBehaviorSupport.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClientDataEncoder.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ClientDataSink.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassResolver.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassTransformWorker.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassTransformWorker.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassTransformWorker.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassTransformWorker.java Fri Mar 13 21:19:57 2009 @@ -1,32 +1,32 @@ -// Copyright 2006 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import org.apache.tapestry5.model.MutableComponentModel; - -/** - * Interface for a set of objects that can perform component class transformations. Implementations should be - * multithreaded, ideally they should be stateless (all necessary state can be stored in the {@link - * org.apache.tapestry5.services.ClassTransformation}). - */ -public interface ComponentClassTransformWorker -{ - /** - * Invoked to perform a transformation on an as-yet unloaded component class, represented by the {@link - * ClassTransformation} instance. In some cases, the worker may make changes to the component model -- for example, - * a worker that deals with parameters may update the model to reflect those parameters. - */ - void transform(ClassTransformation transformation, MutableComponentModel model); -} +// Copyright 2006 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import org.apache.tapestry5.model.MutableComponentModel; + +/** + * Interface for a set of objects that can perform component class transformations. Implementations should be + * multithreaded, ideally they should be stateless (all necessary state can be stored in the {@link + * org.apache.tapestry5.services.ClassTransformation}). + */ +public interface ComponentClassTransformWorker +{ + /** + * Invoked to perform a transformation on an as-yet unloaded component class, represented by the {@link + * ClassTransformation} instance. In some cases, the worker may make changes to the component model -- for example, + * a worker that deals with parameters may update the model to reflect those parameters. + */ + void transform(ClassTransformation transformation, MutableComponentModel model); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClassTransformWorker.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentClasses.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentDefaultProvider.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventLinkEncoder.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventRequestFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventRequestHandler.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventRequestParameters.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentEventResultProcessor.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentLayer.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentMessages.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentMethodAdvice.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentMethodInvocation.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentRequestFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentRequestHandler.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentTemplates.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Context.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextPathEncoder.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextProvider.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ContextValueEncoder.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Core.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/DataTypeAnalyzer.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/DelegatingRequest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Dispatcher.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Environment.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/EnvironmentalAccess.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/EnvironmentalShadowBuilder.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ExceptionReporter.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ExceptionReporter.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ExceptionReporter.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ExceptionReporter.java Fri Mar 13 21:19:57 2009 @@ -1,30 +1,30 @@ -// Copyright 2006, 2007 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -/** - * Interface implemented by a page used for reporting exceptions. - * - * @see org.apache.tapestry5.services.RequestExceptionHandler - */ -public interface ExceptionReporter -{ - /** - * Used to communicate to the page what exception is to be reported. - * - * @param exception runtime exception thrown during processing of the request - */ - void reportException(Throwable exception); -} +// Copyright 2006, 2007 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +/** + * Interface implemented by a page used for reporting exceptions. + * + * @see org.apache.tapestry5.services.RequestExceptionHandler + */ +public interface ExceptionReporter +{ + /** + * Used to communicate to the page what exception is to be reported. + * + * @param exception runtime exception thrown during processing of the request + */ + void reportException(Throwable exception); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ExceptionReporter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldTranslatorSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldValidatorDefaultSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FieldValidatorSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/FormSupport.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Heartbeat.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HiddenFieldLocationRules.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestFilter.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestFilter.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestFilter.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestFilter.java Fri Mar 13 21:19:57 2009 @@ -1,35 +1,35 @@ -// Copyright 2006 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -/** - * Filter interface for {@link org.apache.tapestry5.services.HttpServletRequestHandler}. - */ -public interface HttpServletRequestFilter -{ - /** - * Filter interface for the HttpServletRequestHandler pipeline. A filter should delegate to the handler. It may - * perform operations before or after invoking the handler, and may modify the request and response passed in to the - * handler. - * - * @return true if the request has been handled, false otherwise - */ - boolean service(HttpServletRequest request, HttpServletResponse response, HttpServletRequestHandler handler) - throws IOException; -} +// Copyright 2006 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +/** + * Filter interface for {@link org.apache.tapestry5.services.HttpServletRequestHandler}. + */ +public interface HttpServletRequestFilter +{ + /** + * Filter interface for the HttpServletRequestHandler pipeline. A filter should delegate to the handler. It may + * perform operations before or after invoking the handler, and may modify the request and response passed in to the + * handler. + * + * @return true if the request has been handled, false otherwise + */ + boolean service(HttpServletRequest request, HttpServletResponse response, HttpServletRequestHandler handler) + throws IOException; +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestHandler.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestHandler.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestHandler.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestHandler.java Fri Mar 13 21:19:57 2009 @@ -1,35 +1,35 @@ -// Copyright 2006, 2008 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import org.apache.tapestry5.ioc.annotations.UsesOrderedConfiguration; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; - -/** - * The first step in handing an incoming request to the {@linkplain org.apache.tapestry5.TapestryFilter servlet filter}, - * this constructed as a {@linkplain org.apache.tapestry5.ioc.services.PipelineBuilder pipeline}. The main - * implementation hands off to the {@link org.apache.tapestry5.services.RequestHandler} service. - */ -@UsesOrderedConfiguration(HttpServletRequestFilter.class) -public interface HttpServletRequestHandler -{ - /** - * Returns true if the request was handled, false otherwise. - */ - boolean service(HttpServletRequest request, HttpServletResponse response) throws IOException; -} +// Copyright 2006, 2008 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import org.apache.tapestry5.ioc.annotations.UsesOrderedConfiguration; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; + +/** + * The first step in handing an incoming request to the {@linkplain org.apache.tapestry5.TapestryFilter servlet filter}, + * this constructed as a {@linkplain org.apache.tapestry5.ioc.services.PipelineBuilder pipeline}. The main + * implementation hands off to the {@link org.apache.tapestry5.services.RequestHandler} service. + */ +@UsesOrderedConfiguration(HttpServletRequestFilter.class) +public interface HttpServletRequestHandler +{ + /** + * Returns true if the request was handled, false otherwise. + */ + boolean service(HttpServletRequest request, HttpServletResponse response) throws IOException; +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/HttpServletRequestHandler.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InjectionProvider.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationEventHub.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationListener.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationListener.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationListener.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationListener.java Fri Mar 13 21:19:57 2009 @@ -1,32 +1,32 @@ -// Copyright 2006, 2007 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -/** - * Interface for objects that may cache information that can be invalidated. Invalidation occurs when external files, - * from which in-memory data is cached, is determined to have changed. Granularity is very limited; when any external - * file is found to have changed, the event is fired (with the expectation that the cleared cache will be repopulated as - * necessary). - * - * @see org.apache.tapestry5.services.InvalidationEventHub - * @since 5.1.0.0 - */ -public interface InvalidationListener -{ - /** - * Invoked to indicate that some object is invalid. The receiver should clear its cache. - */ - void objectWasInvalidated(); -} +// Copyright 2006, 2007 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +/** + * Interface for objects that may cache information that can be invalidated. Invalidation occurs when external files, + * from which in-memory data is cached, is determined to have changed. Granularity is very limited; when any external + * file is found to have changed, the event is fired (with the expectation that the cleared cache will be repopulated as + * necessary). + * + * @see org.apache.tapestry5.services.InvalidationEventHub + * @since 5.1.0.0 + */ +public interface InvalidationListener +{ + /** + * Invoked to indicate that some object is invalid. The receiver should clear its cache. + */ + void objectWasInvalidated(); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/InvalidationListener.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LibraryMapping.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LibraryMapping.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LibraryMapping.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LibraryMapping.java Fri Mar 13 21:19:57 2009 @@ -1,54 +1,54 @@ -// Copyright 2006 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -/** - * Used to configure the {@link ComponentClassResolver}, to allow it to map prefixes to library root packages (the - * application namespace is a special case of this). In each case, a prefix on the path is mapped to a package. Prefixes - * should start and end with characters, such as "core". It is allowed for a prefix to contain a slash, though it is not - * recommended. - *

- * The root package name should have a number of sub-packages:

pages
contains named pages
- *
components
contains components
mixins
contains component mixins
base
- *
contains base classes
- * - * @see org.apache.tapestry5.services.TapestryModule#contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration) - */ -public final class LibraryMapping -{ - private final String pathPrefix, rootPackage; - - public LibraryMapping(String pathPrefix, String rootPackage) - { - this.pathPrefix = pathPrefix; - this.rootPackage = rootPackage; - } - - public String getPathPrefix() - { - return pathPrefix; - } - - public String getRootPackage() - { - return rootPackage; - } - - @Override - public String toString() - { - return String.format("LibraryMapping[%s, %s]", pathPrefix, rootPackage); - } -} +// Copyright 2006 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +/** + * Used to configure the {@link ComponentClassResolver}, to allow it to map prefixes to library root packages (the + * application namespace is a special case of this). In each case, a prefix on the path is mapped to a package. Prefixes + * should start and end with characters, such as "core". It is allowed for a prefix to contain a slash, though it is not + * recommended. + *

+ * The root package name should have a number of sub-packages:

pages
contains named pages
+ *
components
contains components
mixins
contains component mixins
base
+ *
contains base classes
+ * + * @see org.apache.tapestry5.services.TapestryModule#contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration) + */ +public final class LibraryMapping +{ + private final String pathPrefix, rootPackage; + + public LibraryMapping(String pathPrefix, String rootPackage) + { + this.pathPrefix = pathPrefix; + this.rootPackage = rootPackage; + } + + public String getPathPrefix() + { + return pathPrefix; + } + + public String getRootPackage() + { + return rootPackage; + } + + @Override + public String toString() + { + return String.format("LibraryMapping[%s, %s]", pathPrefix, rootPackage); + } +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LibraryMapping.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LinkCreationHub.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/LinkCreationListener.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupRenderer.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupRendererFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupWriterFactory.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupWriterFactory.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupWriterFactory.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupWriterFactory.java Fri Mar 13 21:19:57 2009 @@ -1,51 +1,51 @@ -// Copyright 2006, 2007, 2008 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import org.apache.tapestry5.ContentType; -import org.apache.tapestry5.MarkupWriter; - -/** - * Source for {@link org.apache.tapestry5.MarkupWriter} instances. - */ -public interface MarkupWriterFactory -{ - /** - * Creates a markup writer for a particular content type. - * - * @param contentType type of content generated by the markup write; used to control the type of {@link - * org.apache.tapestry5.dom.MarkupModel} used with the {@link org.apache.tapestry5.dom.Document} - * the backs the markup writer. - */ - MarkupWriter newMarkupWriter(ContentType contentType); - - /** - * Creates a markup writer for a particular content type, configured for partial page rendering (i.e., for - * a response to an Ajax request). - * - * @param contentType type of content generated by the markup write; used to control the type of {@link - * org.apache.tapestry5.dom.MarkupModel} used with the {@link org.apache.tapestry5.dom.Document} - * the backs the markup writer. - */ - MarkupWriter newPartialMarkupWriter(ContentType contentType); - - /** - * Obtains a markup writer that will render the content for the provided logical page name. - * - * @param pageName logical page name - * @return writer configured for the page - */ - MarkupWriter newMarkupWriter(String pageName); -} +// Copyright 2006, 2007, 2008 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import org.apache.tapestry5.ContentType; +import org.apache.tapestry5.MarkupWriter; + +/** + * Source for {@link org.apache.tapestry5.MarkupWriter} instances. + */ +public interface MarkupWriterFactory +{ + /** + * Creates a markup writer for a particular content type. + * + * @param contentType type of content generated by the markup write; used to control the type of {@link + * org.apache.tapestry5.dom.MarkupModel} used with the {@link org.apache.tapestry5.dom.Document} + * the backs the markup writer. + */ + MarkupWriter newMarkupWriter(ContentType contentType); + + /** + * Creates a markup writer for a particular content type, configured for partial page rendering (i.e., for + * a response to an Ajax request). + * + * @param contentType type of content generated by the markup write; used to control the type of {@link + * org.apache.tapestry5.dom.MarkupModel} used with the {@link org.apache.tapestry5.dom.Document} + * the backs the markup writer. + */ + MarkupWriter newPartialMarkupWriter(ContentType contentType); + + /** + * Obtains a markup writer that will render the content for the provided logical page name. + * + * @param pageName logical page name + * @return writer configured for the page + */ + MarkupWriter newMarkupWriter(String pageName); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MarkupWriterFactory.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MetaDataLocator.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/MethodFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/NullFieldStrategySource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/ObjectRenderer.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageDocumentGenerator.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageRenderRequestFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageRenderRequestHandler.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PageRenderRequestParameters.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PartialMarkupRenderer.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PartialMarkupRendererFilter.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldBundle.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldBundle.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldBundle.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldBundle.java Fri Mar 13 21:19:57 2009 @@ -1,40 +1,40 @@ -// Copyright 2006 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -/** - * Encapsulates persisted property information for an entire page. - */ -public interface PersistentFieldBundle -{ - /** - * Checks to see if a persistent value has been stored for the indicated component and field. TODO: This method can - * probably be removed; it doesn't look like its used (instead, we if check getValue() returns null). - * - * @param componentId the nested id of the component (within the page), may be null or blank for the root component - * of the page - * @param fieldName the name of the field whose value was persisted - * @return true if a change has been stored - */ - boolean containsValue(String componentId, String fieldName); - - /** - * @param componentId the nested if of the component (within the page), may be null or blank for the root component - * of the page - * @param fieldName the name of the field whose value was persisted - * @return the persisted value, possibly null - */ - Object getValue(String componentId, String fieldName); -} +// Copyright 2006 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +/** + * Encapsulates persisted property information for an entire page. + */ +public interface PersistentFieldBundle +{ + /** + * Checks to see if a persistent value has been stored for the indicated component and field. TODO: This method can + * probably be removed; it doesn't look like its used (instead, we if check getValue() returns null). + * + * @param componentId the nested id of the component (within the page), may be null or blank for the root component + * of the page + * @param fieldName the name of the field whose value was persisted + * @return true if a change has been stored + */ + boolean containsValue(String componentId, String fieldName); + + /** + * @param componentId the nested if of the component (within the page), may be null or blank for the root component + * of the page + * @param fieldName the name of the field whose value was persisted + * @return the persisted value, possibly null + */ + Object getValue(String componentId, String fieldName); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldBundle.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldChange.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldChange.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldChange.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldChange.java Fri Mar 13 21:19:57 2009 @@ -1,37 +1,37 @@ -// Copyright 2006 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -/** - * Represents a previously stored change to a persistent field, within the context of a particular page of the - * application. - */ -public interface PersistentFieldChange -{ - /** - * Returns the nested id of the component, or the empty string for the page's root component. - */ - String getComponentId(); - - /** - * Returns the name of the field for which a change was recorded. - */ - String getFieldName(); - - /** - * Returns the new value for the field (which may be null). - */ - Object getValue(); -} +// Copyright 2006 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +/** + * Represents a previously stored change to a persistent field, within the context of a particular page of the + * application. + */ +public interface PersistentFieldChange +{ + /** + * Returns the nested id of the component, or the empty string for the page's root component. + */ + String getComponentId(); + + /** + * Returns the name of the field for which a change was recorded. + */ + String getFieldName(); + + /** + * Returns the new value for the field (which may be null). + */ + Object getValue(); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldChange.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldStrategy.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldStrategy.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldStrategy.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldStrategy.java Fri Mar 13 21:19:57 2009 @@ -1,50 +1,50 @@ -// Copyright 2006, 2008 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import java.util.Collection; - -/** - * Defines how changes to fields (within components, within pages) may have their values persisted between requests. - * Different implementations store the field values {@linkplain org.apache.tapestry5.internal.services.SessionPersistentFieldStrategy - * in the session}, {@linkplain org.apache.tapestry5.internal.services.ClientPersistentFieldStrategy on the client}, or - * elsewhere. - */ -public interface PersistentFieldStrategy -{ - /** - * Posts a change of a persistent property. - * - * @param pageName the name of the page containing the component - * @param componentId the nested id path of the component (or null for the page's root component) - * @param fieldName the name of the field whose persistent value has changed - * @param newValue the new value for the field, possibly null - */ - void postChange(String pageName, String componentId, String fieldName, Object newValue); - - /** - * Finds all persistent changes previously stored for the named page (for the current active session or client). - */ - Collection gatherFieldChanges(String pageName); - - /** - * Discards any saved changes for the name page. There is no expectation that data already gathered from the - * strategy and persumably dumped into component instance fields will be affected, but future field access (within - * this request or a later one) will show no data for the indicated page. - * - * @param pageName logical name of page whose field persistent data should be discarded - */ - void discardChanges(String pageName); -} +// Copyright 2006, 2008 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import java.util.Collection; + +/** + * Defines how changes to fields (within components, within pages) may have their values persisted between requests. + * Different implementations store the field values {@linkplain org.apache.tapestry5.internal.services.SessionPersistentFieldStrategy + * in the session}, {@linkplain org.apache.tapestry5.internal.services.ClientPersistentFieldStrategy on the client}, or + * elsewhere. + */ +public interface PersistentFieldStrategy +{ + /** + * Posts a change of a persistent property. + * + * @param pageName the name of the page containing the component + * @param componentId the nested id path of the component (or null for the page's root component) + * @param fieldName the name of the field whose persistent value has changed + * @param newValue the new value for the field, possibly null + */ + void postChange(String pageName, String componentId, String fieldName, Object newValue); + + /** + * Finds all persistent changes previously stored for the named page (for the current active session or client). + */ + Collection gatherFieldChanges(String pageName); + + /** + * Discards any saved changes for the name page. There is no expectation that data already gathered from the + * strategy and persumably dumped into component instance fields will be affected, but future field access (within + * this request or a later one) will show no data for the indicated page. + * + * @param pageName logical name of page whose field persistent data should be discarded + */ + void discardChanges(String pageName); +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PersistentFieldStrategy.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PropertyConduitSource.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PropertyEditContext.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/PropertyOutputContext.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RelativeElementPosition.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/Request.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestExceptionHandler.java URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestExceptionHandler.java?rev=753424&r1=753423&r2=753424&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestExceptionHandler.java (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestExceptionHandler.java Fri Mar 13 21:19:57 2009 @@ -1,38 +1,38 @@ -// Copyright 2006, 2008 The Apache Software Foundation -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package org.apache.tapestry5.services; - -import java.io.IOException; - -/** - * Service invoked when an uncaught exception occurs. The error handler is responsible for providing a response to the - * user to describe the error. - */ -public interface RequestExceptionHandler -{ - /** - * Reponsible for handling the error in some way and providing some response to the client. A - * default implementation may render an error response page. - *

- *

- * The handler is also responsible for setting the response status and the X-Tapestry-ErrorMessage response header. - * These are very important in Ajax requests to allow the client-side logic to detect the error and present it to - * the user. - * - * @param exception uncaught exception to be reported - * @throws IOException - */ - void handleRequestException(Throwable exception) throws IOException; -} +// Copyright 2006, 2008 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry5.services; + +import java.io.IOException; + +/** + * Service invoked when an uncaught exception occurs. The error handler is responsible for providing a response to the + * user to describe the error. + */ +public interface RequestExceptionHandler +{ + /** + * Reponsible for handling the error in some way and providing some response to the client. A + * default implementation may render an error response page. + *

+ *

+ * The handler is also responsible for setting the response status and the X-Tapestry-ErrorMessage response header. + * These are very important in Ajax requests to allow the client-side logic to detect the error and present it to + * the user. + * + * @param exception uncaught exception to be reported + * @throws IOException + */ + void handleRequestException(Throwable exception) throws IOException; +} Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestExceptionHandler.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/RequestFilter.java ------------------------------------------------------------------------------ svn:eol-style = native