Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@314 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
3 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/spi/EjbDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.jboss.webbeans.bootstrap.spi; | ||
|
||
import java.lang.reflect.Method; | ||
import java.util.Iterator; | ||
|
||
public interface EjbDescriptor<T> | ||
{ | ||
/** | ||
* @return The EJB Bean class | ||
*/ | ||
public Class<T> getType(); | ||
|
||
/** | ||
* @return The JNDI name under which the EJB is registered | ||
*/ | ||
public String getJndiName(); | ||
|
||
/** | ||
* @return The local interfaces of the EJB | ||
*/ | ||
public Iterator<Class<?>> getLocalInterfaces(); | ||
|
||
/** | ||
* @return The remove methods of the EJB | ||
*/ | ||
public Iterator<Method> getRemoveMethods(); | ||
|
||
} |
24 changes: 22 additions & 2 deletions
24
webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/spi/WebBeanDiscovery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
package org.jboss.webbeans.bootstrap.spi; | ||
|
||
import java.util.Set; | ||
import java.net.URL; | ||
import java.util.Map; | ||
|
||
/** | ||
* A container should implement this interface to allow the Web Beans RI to | ||
* discover the Web Beans to deploy | ||
* | ||
* @author Pete Muir | ||
* | ||
*/ | ||
public interface WebBeanDiscovery | ||
{ | ||
/** | ||
* @return A list of all classes in classpath archives with web-beans.xml files | ||
*/ | ||
public Iterable<Class<?>> discoverWebBeanClasses(); | ||
|
||
public Set<Class<?>> discoverWebBeanClasses(); | ||
/** | ||
* @return A list of all web-beans.xml files in the app classpath | ||
*/ | ||
public Iterable<URL> discoverWebBeansXml(); | ||
|
||
/** | ||
* @return A Map of EJB descriptors, keyed by the EJB bean class | ||
*/ | ||
public Map<Class<?>, EjbDescriptor<?>> discoverEjbs(); | ||
|
||
} |