[jboss-cvs] JBossAS SVN: r95474 - projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/interceptor/processor.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Oct 23 06:01:27 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-10-23 06:01:27 -0400 (Fri, 23 Oct 2009)
New Revision: 95474
Modified:
projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/interceptor/processor/ParserInterceptor.java
Log:
Do nothing if the metadata is already available
Modified: projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/interceptor/processor/ParserInterceptor.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/interceptor/processor/ParserInterceptor.java 2009-10-23 09:58:58 UTC (rev 95473)
+++ projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/interceptor/processor/ParserInterceptor.java 2009-10-23 10:01:27 UTC (rev 95474)
@@ -47,8 +47,13 @@
public void invoke(int state, Deployment dep) throws LifecycleInterceptorException
{
+ // Do nothing if the metadata is already available
HttpMetadata metadata = dep.getAttachment(HttpMetadata.class);
- if (metadata == null && state == Bundle.STARTING)
+ if (metadata != null)
+ return;
+
+ // Parse and create metadta on STARTING
+ if (state == Bundle.STARTING)
{
try
{
More information about the jboss-cvs-commits
mailing list