[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-722) Add a component generator component that allows one to sub-type Component
by Bill Wallace (JIRA)
Add a component generator component that allows one to sub-type Component
-------------------------------------------------------------------------
Key: JBSEAM-722
URL: http://jira.jboss.com/jira/browse/JBSEAM-722
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 1.1.1.GA
Reporter: Bill Wallace
It would be very nice to be able to specify what Component class is to be used within a package, so that one can, for instance, over-ride or extend the initialization code. Adding such over-riding would allow one to efficiently write annotations such as:
@Property("#{property-setter-for-initialization-time})
instead of
@In
which would provide initialization time object injection. I know you can do this by specifying properties in the components.xml file, or seam.properties file, but it is rather a pain to have to create an xml file just to specify an extra property of that type. I know you can do this with @In, but that executes per-method call, and I'd like to see a version that only executes on instantiation. Of course, one can create an initializer class that gets called from an @Create that performs this same data, but I'd like to be able to store the rest of the meta-data at the class level and view it in the debug page automatically, the same as the rest of the properties. I also have some more complex applications for reading in initialization data.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-485) Add support to configure Scanner to ignore certain names
by jarkko Lietolahti (JIRA)
Add support to configure Scanner to ignore certain names
--------------------------------------------------------
Key: JBSEAM-485
URL: http://jira.jboss.com/jira/browse/JBSEAM-485
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 1.1.0.CR1
Reporter: jarkko Lietolahti
Priority: Trivial
Make it possibe to configure Scanner to ignore certain files/directories. E.g. in development we're deploying Seam EAR as an exploded EAR with exploded WAR's and JAR's inside it and we use SVN for version control. SVN uses ".svn" directories to store metadata. Seam startup logs shows that scanning the .svn directories take some time and there're never going to be anything usefull for Seam in there anyways.
Simple fix:
private void handleDirectory(Set<Class<Object>> result, File file,
String path)
{
log.debug("directory: " + file);
for (File child : file.listFiles())
{
String newPath = path == null ? child.getName() : path + '/'
+ child.getName();
if (child.getName().startsWith(".svn"))
{
continue;
}
if (child.isDirectory())
{
handleDirectory(result, child, newPath);
} else
{
handleItem(result, newPath);
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 11 months