[jboss-cvs] JBossAS SVN: r95407 - projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 22 09:59:46 EDT 2009
Author: alesj
Date: 2009-10-22 09:59:45 -0400 (Thu, 22 Oct 2009)
New Revision: 95407
Added:
projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/ConfigurationCreator.java
Modified:
projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/TypeInfoProvider.java
Log:
Add config creator.
Copied: projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/ConfigurationCreator.java (from rev 95388, projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/Configuration.java)
===================================================================
--- projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/ConfigurationCreator.java (rev 0)
+++ projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/ConfigurationCreator.java 2009-10-22 13:59:45 UTC (rev 95407)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.mcann.repository;
+
+/**
+ * Create configuration.
+ *
+ * This should be used when we're dealing with singletons
+ * which are using AnnotationScanner with stateful TypeInfoProvider.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public interface ConfigurationCreator
+{
+ /**
+ * Create new configuration.
+ *
+ * @return new configuration instance
+ */
+ Configuration createConfiguration();
+}
\ No newline at end of file
Modified: projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/TypeInfoProvider.java
===================================================================
--- projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/TypeInfoProvider.java 2009-10-22 13:56:54 UTC (rev 95406)
+++ projects/mc-ann/trunk/core/src/main/java/org/jboss/mcann/repository/TypeInfoProvider.java 2009-10-22 13:59:45 UTC (rev 95407)
@@ -27,6 +27,10 @@
/**
* Type info provider.
*
+ * If impl of this interface implements before/after methods,
+ * meaning this type info is probably stateful,
+ * we should make sure Configuration instance doesn't re-use it.
+ *
* @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
*/
public interface TypeInfoProvider
More information about the jboss-cvs-commits
mailing list