You could probably push the urls of your classes into the 
AspectAnnotationLoader. Which of these two methods you want to use is up to 
you. The first one shows how to create a ClassFile:


  |    public void deployInputStreamIterator(Iterator<InputStream> it) throws 
Exception
  |    {
  |       while (it.hasNext())
  |       {
  |          InputStream stream = it.next();
  |          DataInputStream dstream = new DataInputStream(stream);
  |          ClassFile cf = null;
  |          try
  |          {
  |             cf = new ClassFile(dstream);
  |          }
  |          finally
  |          {
  |             dstream.close();
  |             stream.close();
  |          }
  |          deployClassFile(cf);
  |       }
  |    }
  | 
  |    public void deployClassFile(ClassFile cf) throws Exception
  |    {
  |       ...
  |    }
  | 
Note that the deployClassFile() method only exists in AOP 2.0. Previous 
versions only contain deployInputStreamIterator(). You basically need to scan 
the archive you want to look for annotations in, and create an InputStream for 
each class, put those in a collection, and pass its iterator in to the 
deployInputStreamIterator() method.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183476#4183476

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183476
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to