Author: julien(a)jboss.com
Date: 2008-04-15 20:00:37 -0400 (Tue, 15 Apr 2008)
New Revision: 10598
Removed:
modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/portal/InterceptorStackFactoryImpl.java
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/InterceptorStackFactoryImpl.java
Log:
remove now useless InterceptorStackFactoryImpl
Deleted:
modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/portal/InterceptorStackFactoryImpl.java
===================================================================
---
modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/portal/InterceptorStackFactoryImpl.java 2008-04-15
23:51:51 UTC (rev 10597)
+++
modules/portlet/trunk/portal/src/main/java/org/jboss/portal/portlet/portal/InterceptorStackFactoryImpl.java 2008-04-16
00:00:37 UTC (rev 10598)
@@ -1,84 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2008, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.portal;
-
-import org.jboss.portal.common.invocation.Interceptor;
-import org.jboss.portal.common.invocation.InterceptorStack;
-import org.jboss.portal.common.invocation.InterceptorStackFactory;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class InterceptorStackFactoryImpl implements InterceptorStackFactory
-{
-
- /** . */
- private volatile Interceptor[] interceptors;
-
- /** . */
- private final InterceptorStackImpl stack = new InterceptorStackImpl();
-
- public Interceptor[] getInterceptors()
- {
- return interceptors;
- }
-
- public void setInterceptors(Interceptor[] interceptors)
- {
- this.interceptors = interceptors;
- }
-
- public InterceptorStack getInterceptorStack()
- {
- return stack;
- }
-
- private class InterceptorStackImpl implements InterceptorStack
- {
-
- public int getLength()
- {
- // Avoid dirty reads
- Interceptor[] interceptors = InterceptorStackFactoryImpl.this.interceptors;
-
- //
- return interceptors != null ? interceptors.length : 0;
- }
-
- public Interceptor getInterceptor(int i) throws ArrayIndexOutOfBoundsException
- {
- // Avoid dirty reads
- Interceptor[] interceptors = InterceptorStackFactoryImpl.this.interceptors;
-
- //
- if (interceptors == null)
- {
- throw new ArrayIndexOutOfBoundsException("No interceptors");
- }
-
- //
- return interceptors[i];
- }
- }
-}
\ No newline at end of file
Deleted:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/InterceptorStackFactoryImpl.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/InterceptorStackFactoryImpl.java 2008-04-15
23:51:51 UTC (rev 10597)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/InterceptorStackFactoryImpl.java 2008-04-16
00:00:37 UTC (rev 10598)
@@ -1,84 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat *
- * Copyright 2008, Red Hat Middleware, LLC, and individual *
- * contributors as indicated by the @authors tag. See the *
- * copyright.txt in the distribution for a full listing of *
- * individual contributors. *
- * *
- * This is free software; you can redistribute it and/or modify it *
- * under the terms of the GNU Lesser General Public License as *
- * published by the Free Software Foundation; either version 2.1 of *
- * the License, or (at your option) any later version. *
- * *
- * This software is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Lesser General Public License for more details. *
- * *
- * You should have received a copy of the GNU Lesser General Public *
- * License along with this software; if not, write to the Free *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
- ******************************************************************************/
-package org.jboss.portal.portlet.test;
-
-import org.jboss.portal.common.invocation.Interceptor;
-import org.jboss.portal.common.invocation.InterceptorStack;
-import org.jboss.portal.common.invocation.InterceptorStackFactory;
-
-/**
- * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
- * @version $Revision: 1.1 $
- */
-public class InterceptorStackFactoryImpl implements InterceptorStackFactory
-{
-
- /** . */
- private volatile Interceptor[] interceptors;
-
- /** . */
- private final InterceptorStackImpl stack = new InterceptorStackImpl();
-
- public Interceptor[] getInterceptors()
- {
- return interceptors;
- }
-
- public void setInterceptors(Interceptor[] interceptors)
- {
- this.interceptors = interceptors;
- }
-
- public InterceptorStack getInterceptorStack()
- {
- return stack;
- }
-
- private class InterceptorStackImpl implements InterceptorStack
- {
-
- public int getLength()
- {
- // Avoid dirty reads
- Interceptor[] interceptors = InterceptorStackFactoryImpl.this.interceptors;
-
- //
- return interceptors != null ? interceptors.length : 0;
- }
-
- public Interceptor getInterceptor(int i) throws ArrayIndexOutOfBoundsException
- {
- // Avoid dirty reads
- Interceptor[] interceptors = InterceptorStackFactoryImpl.this.interceptors;
-
- //
- if (interceptors == null)
- {
- throw new ArrayIndexOutOfBoundsException("No interceptors");
- }
-
- //
- return interceptors[i];
- }
- }
-}