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@2926 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
8 changed files
with
122 additions
and
45 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
spi/src/main/java/org/jboss/webbeans/bootstrap/spi/BeanDeploymentArchive.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,68 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2008, Red Hat Middleware LLC, and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.webbeans.bootstrap.spi; | ||
|
||
import java.net.URL; | ||
import java.util.List; | ||
|
||
/** | ||
* Represents a CDI bean deployment archive. | ||
* | ||
* A bean deployment archive is any library jar, EJB jar or rar archive with a | ||
* META-INF/beans.xml file, any WEB-INF/classes directory in war with a | ||
* WEB-INF/beans.xml, or any directory in the classpath with a | ||
* META-INF/beans.xml. | ||
* | ||
* For an application deployed as an ear, all library jars, EJB jars, rars and | ||
* war WEB-INF/classes directories should be searched. | ||
* | ||
* For an application deployed as a war, all library jars and the | ||
* WEB-INF/classes directory should be searched. | ||
* | ||
* @see | ||
* | ||
* @author Pete Muir | ||
* | ||
*/ | ||
public interface BeanDeploymentArchive | ||
{ | ||
|
||
/** | ||
* Get the ordered transitive closure of modules which are accessible to this | ||
* module. The order will be used both in bean discovery and resolution. | ||
* | ||
* Circular dependencies will be detected and ignored by the container | ||
* | ||
* @return the ordered transitive closure | ||
*/ | ||
public List<BeanDeploymentArchive> getBeanDeploymentArchiveClosure(); | ||
|
||
/** | ||
* Gets all classes in the bean deployment archive | ||
* | ||
* @return an iteration over the classes | ||
*/ | ||
public Iterable<Class<?>> getBeanClasses(); | ||
|
||
/** | ||
* Get the deployment descriptor | ||
* | ||
* @return a URL pointing to the deployment descriptor | ||
*/ | ||
public URL getBeansXml(); | ||
|
||
} |
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
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
42 changes: 42 additions & 0 deletions
42
spi/src/main/java/org/jboss/webbeans/ejb/spi/EJBModule.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,42 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2008, Red Hat Middleware LLC, and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.webbeans.ejb.spi; | ||
|
||
import org.jboss.webbeans.bootstrap.spi.BeanDeploymentArchive; | ||
|
||
/** | ||
* Represents an EJB bean deployment archive. | ||
* | ||
* If a bean deployment archive is identified as an EJB bean deployment, an | ||
* instance of {@link EJBModule} should be returned instead of | ||
* {@link BeanDeploymentArchive}; the Java EE container is responsible for | ||
* identifying EJB bean deployment archives. | ||
* | ||
* @author Pete Muir | ||
* | ||
*/ | ||
public interface EJBModule extends BeanDeploymentArchive | ||
{ | ||
|
||
/** | ||
* Get all the EJBs in the deployment archive | ||
* | ||
* @return | ||
*/ | ||
public Iterable<EjbDescriptor<?>> getEjbs(); | ||
|
||
} |
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
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
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
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