[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Sun Feb 25 14:06:23 EST 2007
User: gavin
Date: 07/02/25 14:06:23
Modified: src/main/org/jboss/seam Component.java
Log:
EL in EJB-QL :-)
Revision Changes Path
1.240 +8 -0 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.239
retrieving revision 1.240
diff -u -b -r1.239 -r1.240
--- Component.java 25 Feb 2007 17:25:22 -0000 1.239
+++ Component.java 25 Feb 2007 19:06:23 -0000 1.240
@@ -163,6 +163,7 @@
private List<BijectedAttribute<Out>> outAttributes = new ArrayList<BijectedAttribute<Out>>();
private List<BijectedAttribute> parameterSetters = new ArrayList<BijectedAttribute>();
private List<BijectedAttribute> dataModelGetters = new ArrayList<BijectedAttribute>();
+ private List<BijectedAttribute> pcAttributes = new ArrayList<BijectedAttribute>();
private Map<String, BijectedAttribute> dataModelSelectionSetters = new HashMap<String, BijectedAttribute>();
private List<Interceptor> interceptors = new ArrayList<Interceptor>();
@@ -535,6 +536,7 @@
{
throw new IllegalArgumentException("@PersistenceContext may only be used on session bean or message driven bean components: " + name);
}
+ pcAttributes.add( new BijectedMethod( toName(null, method), method, null ) );
}
if ( method.isAnnotationPresent(Begin.class) ||
method.isAnnotationPresent(End.class) ||
@@ -624,6 +626,7 @@
{
throw new IllegalArgumentException("@PersistenceContext may only be used on session bean or message driven bean components: " + name);
}
+ pcAttributes.add( new BijectedField( toName(null, field), field, null ) );
}
for ( Annotation ann: field.getAnnotations() )
{
@@ -2254,4 +2257,9 @@
}
}
+ public List<BijectedAttribute> getPersistenceContextAttributes()
+ {
+ return pcAttributes;
+ }
+
}
More information about the jboss-cvs-commits
mailing list