diff --git a/core/src/main/java/org/acegisecurity/AcegiMessageSource.java b/core/src/main/java/org/acegisecurity/AcegiMessageSource.java index 29cae331db..17bff3103a 100644 --- a/core/src/main/java/org/acegisecurity/AcegiMessageSource.java +++ b/core/src/main/java/org/acegisecurity/AcegiMessageSource.java @@ -1,4 +1,4 @@ -/* Copyright 2004, 2005 Acegi Technology Pty Limited +/* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,12 +23,15 @@ import org.springframework.context.support.ResourceBundleMessageSource; * The default MessageSource used by Acegi Security. * *

- * All Acegi Security classes requiring messge localization will be default use + * All Acegi Security classes requiring messge localization will by default use * this class. However, all such classes will also implement * MessageSourceAware so that the application context can inject * an alternative message source. Therefore this class is only used when the * deployment environment has not specified an alternative message source. *

+ * + * @author Ben Alex + * @version $Id$ */ public class AcegiMessageSource extends ResourceBundleMessageSource { //~ Constructors =========================================================== @@ -36,8 +39,10 @@ public class AcegiMessageSource extends ResourceBundleMessageSource { public AcegiMessageSource() { setBasename("org.acegisecurity.messages"); } - + + //~ Methods ================================================================ + public static MessageSourceAccessor getAccessor() { - return new MessageSourceAccessor(new AcegiMessageSource()); + return new MessageSourceAccessor(new AcegiMessageSource()); } } diff --git a/samples/contacts/src/main/webapp/filter/WEB-INF/applicationContext-acegi-security.xml b/samples/contacts/src/main/webapp/filter/WEB-INF/applicationContext-acegi-security.xml index 38f61938e1..d185b84fef 100644 --- a/samples/contacts/src/main/webapp/filter/WEB-INF/applicationContext-acegi-security.xml +++ b/samples/contacts/src/main/webapp/filter/WEB-INF/applicationContext-acegi-security.xml @@ -149,6 +149,11 @@ + + + + +