[jboss-cvs] JBossAS SVN: r73559 - projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 21 12:35:10 EDT 2008
Author: kabir.khan at jboss.com
Date: 2008-05-21 12:35:10 -0400 (Wed, 21 May 2008)
New Revision: 73559
Added:
projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/DefaultAspectManager.java
Log:
Add a DefaultAspectManager bean to be able to configure the name of the ASpectManager if not specified
Added: projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/DefaultAspectManager.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/DefaultAspectManager.java (rev 0)
+++ projects/microcontainer/trunk/aop-mc-int/src/main/org/jboss/aop/microcontainer/beans/metadata/DefaultAspectManager.java 2008-05-21 16:35:10 UTC (rev 73559)
@@ -0,0 +1,54 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file 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.aop.microcontainer.beans.metadata;
+
+/**
+ * Bean to allow overriding of the aspect manager name and property in different environments
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class DefaultAspectManager
+{
+ private static String managerBean = "AspectManager";
+ private static String managerProperty;
+
+ public void setManagerBean(String name)
+ {
+ managerBean = name;
+ }
+
+ public void setManagerProperty(String name)
+ {
+ managerProperty = name;
+ }
+
+ public static String getManagerBeanName()
+ {
+ return managerBean;
+ }
+
+ public static String getManagerPropertyName()
+ {
+ return managerProperty;
+ }
+}
More information about the jboss-cvs-commits
mailing list