[jboss-cvs] JBossAS SVN: r81960 - in projects/demos/microcontainer/trunk/ioc/src/main: resources/META-INF and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 2 08:06:22 EST 2008
Author: alesj
Date: 2008-12-02 08:06:21 -0500 (Tue, 02 Dec 2008)
New Revision: 81960
Added:
projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstUser.java
projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstants.java
Modified:
projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/access-mode-beans.xml
Log:
Access constants.
Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstUser.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstUser.java (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstUser.java 2008-12-02 13:06:21 UTC (rev 81960)
@@ -0,0 +1,45 @@
+/*
+ * 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.demos.ioc.access;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class XConstUser
+{
+ private int x;
+
+ public XConstUser()
+ {
+ System.out.println("x = " + x);
+ }
+
+ public int getX()
+ {
+ return x;
+ }
+
+ public void setX(int x)
+ {
+ this.x = x;
+ }
+}
Added: projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstants.java
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstants.java (rev 0)
+++ projects/demos/microcontainer/trunk/ioc/src/main/java/org/jboss/demos/ioc/access/XConstants.java 2008-12-02 13:06:21 UTC (rev 81960)
@@ -0,0 +1,30 @@
+/*
+ * 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.demos.ioc.access;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class XConstants
+{
+ public static final int X_INT_VALUE = 42;
+}
Modified: projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/access-mode-beans.xml
===================================================================
--- projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/access-mode-beans.xml 2008-12-02 12:51:01 UTC (rev 81959)
+++ projects/demos/microcontainer/trunk/ioc/src/main/resources/META-INF/access-mode-beans.xml 2008-12-02 13:06:21 UTC (rev 81960)
@@ -4,4 +4,10 @@
<property name="string">InternalString</property>
</bean>
+ <bean name="XConstants" class="org.jboss.demos.ioc.access.XConstants" access-mode="FIELDS"/>
+
+ <bean name="XConstUser" class="org.jboss.demos.ioc.access.XConstUser">
+ <property name="x"><inject bean="XConstants" property="X_INT_VALUE"/></property>
+ </bean>
+
</deployment>
More information about the jboss-cvs-commits
mailing list