[jboss-cvs] JBossAS SVN: r58974 - in projects/ejb3/trunk: . injection injection/src injection/src/main injection/src/main/java injection/src/main/java/org injection/src/main/java/org/jboss injection/src/main/java/org/jboss/injection injection/src/main/java/org/jboss/injection/aop injection/src/main/java/org/jboss/injection/lang/reflect
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 11 08:42:13 EST 2006
Author: wolfc
Date: 2006-12-11 08:42:04 -0500 (Mon, 11 Dec 2006)
New Revision: 58974
Added:
projects/ejb3/trunk/injection/
projects/ejb3/trunk/injection/src/
projects/ejb3/trunk/injection/src/main/
projects/ejb3/trunk/injection/src/main/java/
projects/ejb3/trunk/injection/src/main/java/org/
projects/ejb3/trunk/injection/src/main/java/org/jboss/
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/InjectorProcessor.java
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/aop/
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/aop/ConstructorInterceptor.java
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/reflect/BeanProperty.java
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/reflect/BeanPropertyFactory.java
Removed:
projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/reflect/BeanProperty.java
Log:
Property changes on: projects/ejb3/trunk/injection
___________________________________________________________________
Name: svn:ignore
+ target
Added: projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/InjectorProcessor.java
===================================================================
--- projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/InjectorProcessor.java 2006-12-11 13:07:59 UTC (rev 58973)
+++ projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/InjectorProcessor.java 2006-12-11 13:42:04 UTC (rev 58974)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.injection;
+
+/**
+ * Processes instances by injecting their properties and calling their postconstructs.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class InjectorProcessor
+{
+ public static void process(Object instance)
+ {
+
+ }
+}
Added: projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/aop/ConstructorInterceptor.java
===================================================================
--- projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/aop/ConstructorInterceptor.java 2006-12-11 13:07:59 UTC (rev 58973)
+++ projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/aop/ConstructorInterceptor.java 2006-12-11 13:42:04 UTC (rev 58974)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.injection.aop;
+
+import org.jboss.aop.advice.Interceptor;
+import org.jboss.aop.joinpoint.Invocation;
+import org.jboss.injection.InjectorProcessor;
+
+/**
+ * Intercepts construction of new objects and fires up injection.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class ConstructorInterceptor implements Interceptor
+{
+ public String getName()
+ {
+ return "ConstructorInterceptor";
+ }
+
+ public Object invoke(Invocation invocation) throws Throwable
+ {
+ InjectorProcessor.process(invocation.getTargetObject());
+ return invocation.invokeNext();
+ }
+}
Copied: projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang (from rev 58873, trunk/ejb3/src/main/org/jboss/injection/lang)
Deleted: projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/reflect/BeanProperty.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/injection/lang/reflect/BeanProperty.java 2006-12-06 18:05:12 UTC (rev 58873)
+++ projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/reflect/BeanProperty.java 2006-12-11 13:42:04 UTC (rev 58974)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, 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.injection.lang.reflect;
-
-import java.lang.reflect.AccessibleObject;
-
-/**
- * A bean property defines a propery of a pojo from the EJB3 point of view.
- * It can be used to inject values into it.
- *
- * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
- * @version $Revision: $
- */
-public interface BeanProperty
-{
- AccessibleObject getAccessibleObject();
-
- Class<?> getDeclaringClass();
-
- String getName();
-
- Class<?> getType();
-
- void set(Object instance, Object value);
-}
Copied: projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/reflect/BeanProperty.java (from rev 58973, trunk/ejb3/src/main/org/jboss/injection/lang/reflect/BeanProperty.java)
Copied: projects/ejb3/trunk/injection/src/main/java/org/jboss/injection/lang/reflect/BeanPropertyFactory.java (from rev 58973, trunk/ejb3/src/main/org/jboss/injection/lang/reflect/BeanPropertyFactory.java)
More information about the jboss-cvs-commits
mailing list