|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.bootstrap.WebBeansBootstrap
public class WebBeansBootstrap
Bootstrapping functionality that is run at application startup and detects and register beans
| Field Summary | |
|---|---|
protected ManagerImpl |
manager
|
static java.lang.String |
WEB_BEAN_DISCOVERY_PROPERTY_NAME
|
| Constructor Summary | |
|---|---|
WebBeansBootstrap()
|
|
WebBeansBootstrap(ManagerImpl manager)
Constructor Starts up with the singleton Manager |
|
| Method Summary | |
|---|---|
void |
boot(WebBeanDiscovery webBeanDiscovery)
Starts the boot process. |
protected void |
createBean(AbstractClassBean<?> bean,
java.util.Set<AbstractBean<?,?>> beans)
Creates a Web Bean from a bean abstraction and adds it to the set of created beans Also creates the implicit field- and method-level beans, if present |
protected java.util.Set<AbstractBean<?,?>> |
createBeans(java.lang.Iterable<java.lang.Class<?>> classes)
Creates Web Beans from a set of classes Iterates over the classes and creates a Web Bean of the corresponding type. |
protected java.util.Set<AbstractBean<?,?>> |
createStandardBeans()
Creates the standard beans used internally by the RI |
static java.lang.String |
getVersion()
Gets version information |
static java.util.Set<java.lang.Class<? extends WebBeanDiscovery>> |
getWebBeanDiscoveryClasses()
Gets the available discovery implementations Parses the web-beans-ri.properties file and for each row describing a discover class, instantiate that class and add it to the set |
protected static boolean |
isTypeSimpleWebBean(java.lang.Class<?> type)
Indicates if the type is a simple Web Bean |
protected void |
registerBeans(java.lang.Class<?>... classes)
Register any beans defined by the provided classes with the manager |
protected void |
registerBeans(java.lang.Iterable<java.lang.Class<?>> classes)
Register the bean with the manager, including any standard (built in) beans |
protected void |
registerManager()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String WEB_BEAN_DISCOVERY_PROPERTY_NAME
protected ManagerImpl manager
| Constructor Detail |
|---|
public WebBeansBootstrap(ManagerImpl manager)
public WebBeansBootstrap()
| Method Detail |
|---|
protected void registerManager()
protected void registerBeans(java.lang.Class<?>... classes)
classes - The classes to registerprotected void registerBeans(java.lang.Iterable<java.lang.Class<?>> classes)
classes - The classes to register as Web Beansprotected java.util.Set<AbstractBean<?,?>> createStandardBeans()
protected java.util.Set<AbstractBean<?,?>> createBeans(java.lang.Iterable<java.lang.Class<?>> classes)
classes - The classes to adapt
protected void createBean(AbstractClassBean<?> bean,
java.util.Set<AbstractBean<?,?>> beans)
bean - The bean representationbeans - The set of created beanspublic void boot(WebBeanDiscovery webBeanDiscovery)
webBeanDiscovery - The discovery implementationpublic static java.lang.String getVersion()
public static java.util.Set<java.lang.Class<? extends WebBeanDiscovery>> getWebBeanDiscoveryClasses()
DeploymentPropertiesprotected static boolean isTypeSimpleWebBean(java.lang.Class<?> type)
type - The type to inspect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||