Custom Build Indicator (stop light)

Dear Sirs:

I have finally got my stop light up and running with TeamCity! However, I need a little help polishing up the java plugin. (I am a .NET developer, NOT a java guy).

I have bypassed authorization by adding my path to the buildServerSpringWeb.xml file. However, I found a post that says it would be be better to use AuthorizationIntercepter.addPathNotRequiringAuth(). The post says, "You can obtain this interceptor as usual Spring bean." However, I don't know how to request the bean from Spring. Could you please provide a simple snippet that demonstrates this? Thanks.

(If you want to see the entire java class see: http://intellij.net/forums/thread.jspa?messageID=5206104&#5206104)

Thanks inadvance,

Luke Lanphear

1 comment

Hello,

Spring offers autowiring feature for classes specified in a Spring xml
configuration (build-server-plugin-*.xml in your case). In such class you
can create a constructor which will accept AuthorizationIntercepter
interface as its argument. When server starts Spring will automatically
instantiate your class and provide all necessary arguments.

--
Pavel Sher
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"



"Luke Lanphear" <no_reply@jetbrains.com> wrote in message
news:24174710.1205297429024.JavaMail.itn@is.intellij.net...

Dear Sirs:

>

I have finally got my stop light up and running with TeamCity! However, I
need a little help polishing up the java plugin. (I am a .NET developer,
NOT a java guy).

>

I have bypassed authorization by adding my path to the
buildServerSpringWeb.xml file. However, I found a post that says it would
be be better to use AuthorizationIntercepter.addPathNotRequiringAuth().
The post says, "You can obtain this interceptor as usual Spring bean."
However, I don't know how to request the bean from Spring. Could you
please provide a simple snippet that demonstrates this? Thanks.

>

(If you want to see the entire java class see:
http://intellij.net/forums/thread.jspa?messageID=5206104&#5206104)

>

Thanks inadvance,

>

Luke Lanphear



0

Please sign in to leave a comment.