[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Shane Bryzak
sbryzak at redhat.com
Mon May 7 21:34:31 EDT 2007
User: sbryzak2
Date: 07/05/07 21:34:31
Modified: src/main/org/jboss/seam Seam.java
Log:
JBSEAM-1227
Revision Changes Path
1.28 +237 -240 jboss-seam/src/main/org/jboss/seam/Seam.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Seam.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Seam.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- Seam.java 23 Jan 2007 19:00:35 -0000 1.27
+++ Seam.java 8 May 2007 01:34:31 -0000 1.28
@@ -1,6 +1,5 @@
-//$Id: Seam.java,v 1.27 2007/01/23 19:00:35 gavin Exp $
+//$Id: Seam.java,v 1.28 2007/05/08 01:34:31 sbryzak2 Exp $
package org.jboss.seam;
-
import static org.jboss.seam.ComponentType.ENTITY_BEAN;
import static org.jboss.seam.ComponentType.JAVA_BEAN;
import static org.jboss.seam.ComponentType.MESSAGE_DRIVEN_BEAN;
@@ -10,9 +9,7 @@
import static org.jboss.seam.util.EJB.STATEFUL;
import static org.jboss.seam.util.EJB.STATELESS;
import static org.jboss.seam.util.EJB.name;
-
import javax.persistence.Entity;
-
import org.jboss.seam.annotations.Intercept;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Role;
@@ -20,7 +17,6 @@
import org.jboss.seam.contexts.Contexts;
import org.jboss.seam.contexts.Lifecycle;
import org.jboss.seam.util.Strings;
-
/**
* Convenience methods for accessing annotated information
* about Seam component classes.
@@ -31,7 +27,6 @@
{
private static final String SESSION_INVALID = "org.jboss.seam.sessionInvalid";
-
/**
* Get the default scope
* @see Scope
@@ -162,7 +157,6 @@
throw new IllegalArgumentException();
}
}
-
private static String unqualifyClassName(Class<?> clazz) {
return Strings.unqualify( Strings.unqualify( clazz.getName() ), '$' );
}
@@ -187,7 +181,6 @@
return InterceptionType.ALWAYS;
}
}
-
/**
* Mark the session for invalidation at the end of the request cycle
*/
@@ -236,5 +229,9 @@
}
}
}
-
+ public static String getVersion()
+ {
+ Package pkg = Seam.class.getPackage();
+ return (pkg != null ? pkg.getImplementationVersion() : null);
+ }
}
More information about the jboss-cvs-commits
mailing list