Author: shane.bryzak(a)jboss.com
Date: 2009-01-09 06:56:42 -0500 (Fri, 09 Jan 2009)
New Revision: 845
Removed:
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/TckUtils.java
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/util/
Modified:
tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java
Log:
moved to impl
Modified: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java 2009-01-09 11:49:39
UTC (rev 844)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/Beans.java 2009-01-09 11:56:42
UTC (rev 845)
@@ -1,5 +1,7 @@
package org.jboss.webbeans.tck.api;
+import javax.webbeans.manager.Manager;
+
/**
* Provides Bean related operations.
*
@@ -7,5 +9,6 @@
*/
public interface Beans
{
+ <T> T createSimpleBean(Class<T> clazz, Manager manager);
}
Deleted: tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/TckUtils.java
===================================================================
--- tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/TckUtils.java 2009-01-09
11:49:39 UTC (rev 844)
+++ tck/trunk/api/src/main/java/org/jboss/webbeans/tck/api/TckUtils.java 2009-01-09
11:56:42 UTC (rev 845)
@@ -1,62 +0,0 @@
-package org.jboss.webbeans.tck.api;
-
-import java.lang.reflect.Constructor;
-
-import org.jboss.webbeans.tck.api.util.DeploymentProperties;
-import org.jboss.webbeans.tck.api.util.Reflections;
-
-/**
- *
- * @author Shane Bryzak
- *
- */
-public class TckUtils
-{
- private static DeploymentProperties deploymentProperties = new
DeploymentProperties();
-
- public static Managers getManagers()
- {
- Managers managers = null;
-
- for (Class<? extends Managers> cls :
deploymentProperties.getClasses(Managers.class.getName(), Managers.class))
- {
- Constructor<? extends Managers> constructor =
Reflections.getConstructor(cls);
- if (constructor != null)
- {
- try
- {
- managers = constructor.newInstance();
- }
- catch (Exception ex)
- {
- // Do something with the exception (log it?)
- }
- }
- }
-
- return managers;
- }
-
- public static Contexts getContexts()
- {
- Contexts contexts = null;
-
- for (Class<? extends Contexts> cls :
deploymentProperties.getClasses(Contexts.class.getName(), Contexts.class))
- {
- Constructor<? extends Contexts> constructor =
Reflections.getConstructor(cls);
- if (constructor != null)
- {
- try
- {
- contexts = constructor.newInstance();
- }
- catch (Exception ex)
- {
- // Do something with the exception (log it?)
- }
- }
- }
-
- return contexts;
- }
-}
Show replies by date