Projets
Pages enfant
  • 1.7 Les beans Spring

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Remarque

ESUP-Commons V2 utilise Spring 3

Sommaire :

Sommaire
maxLevel3

Tout au long de ce chapitre nous allons nous appuyer sur un exemple (configuration du gestionnaire d'exceptions) :

Bloc de code
	<bean
		id="exceptionServiceFactory"
		class="org.esupportail.commons.services.exceptionHandling.CachingEmailExceptionServiceFactoryImpl"
		parent="abstractApplicationAwareBean">
		<property name="smtpService" ref="smtpService" />
		<property name="recipientEmail" value="${exceptionHandling.email}" />
		<property name="exceptionViews" >
			<map>
				<entry key="java.lang.Exception" value="go_exception" />
			</map>
		</property>
		<property name="logLevel" value="${exceptionHandling.logLevel}" />
		<property name="cacheManager" ref="cacheManager" />
		<property name="cacheName" value="" />
	</bean>

...

Sommaire :

Sommaire
maxLevel3

...

Les fichiers de configuration

...