Hi John, The Acegi Java 5 Annotations approach is very similiar to that of the Commons Attributes configuration. (except instead of using doclet, its using Java 5 annotations)
Please see the Reference Guide (search for annotations) for example config. i.e. <bean id="attributes" class="org.acegisecurity.annotation.SecurityAnnotationAttributes"/> <bean id="objectDefinitionSource" class="org.acegisecurity.intercept.method.MethodDefinitionAttributes"> <property name="attributes"><ref local="attributes"/></property> </bean> Also, if you download the Acegi distribution there are 2 examples using Annotations. One is a standalone @Secured example... (see samples.annotations.*) as well there is a port of the Contacts example using both Spring @Transactional and @Secured annotations. Please see contacts-tiger example. I will look at beefing up the Documentation on the Java 5 Annotations. There are examples and documentation, however please let me know if there is something in particular you were looking for that you needed. (i.e. example config, etc? ) Cheers, Mark On 12/4/05, John Gibson <[EMAIL PROTECTED]> wrote: > I'm not sure if this is the appropriate place to post a question, if > there's a acegisecurity-user list that'd be more appropriate then please > point me in the right direction. > > Anyways, I've been experimenting with Acegi Security and I was > interested in using the Java 5 Annotations, however documentation is > sparse. In particular I'm not sure what to do besides placing @Secured > annotations on methods that I want to protect. Is there an annotation > processor that I need to run to generate XML, will Acegi Security create > the MethodSecurityInterceptor for me automatically, or am I completely > missing something here? > > Thanks, > > John Gibson > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Home: http://acegisecurity.org > Acegisecurity-developer mailing list > Acegisecurity-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer