Java Doc for WebBeansContainer.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » webbeans » manager » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.webbeans.manager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.webbeans.manager.WebBeansContainer

WebBeansContainer
public class WebBeansContainer implements ScanListener,EnvironmentListener,Container,java.io.Serializable(Code)
The web beans container for a given environment.

Inner Class :static class FactoryBinding



Method Summary
public  voidaddComponent(ComponentImpl comp)
    
public  voidaddComponentByName(String name, ComponentImpl comp)
    
public  voidaddComponentByType(Type type, ComponentImpl comp)
    
public  voidaddContext(Class<Annotation> scopeType, Context context)
    
public  voidaddEnabledInterceptor(Class cl)
    
public  voidaddObserver(ObserverImpl observer)
    
public  voidaddSingleton(Object object)
    
public  voidaddSingleton(Object object, String name)
    
public  voidaddSingleton(Object object, String name, Class componentType)
    
public  voidaddSingletonByName(Object object, String name)
    
public  ComponentImplbind(String location, Type type, String name)
    
public  ComponentImplbind(String location, Type type)
     Returns the web beans component corresponding to the return type.
public  ComponentImplbind(String location, Type type, Annotation[] paramAnn)
     Returns the web beans component corresponding to a method parameter.
public  ComponentImplbind(String location, Type type, ArrayList<Annotation> bindingList)
     Returns the web beans component with a given binding list.
public  voidbind()
    
public  ComponentImplbindByBindings(String location, Type type, ArrayList<Binding> bindingList)
     Returns the web beans component with a given binding list.
public  voidclassMatchEvent(EnvironmentClassLoader loader, Path root, String className)
    
public static  WebBeansContainercreate()
     Returns the current active container.
public static  WebBeansContainercreate(ClassLoader loader)
     Returns the current active container.
public  WbComponentTypecreateComponentType(Class cl)
    
public  ConversationcreateConversation()
    
public  TcreateFactory(Class<T> type, String name)
     Returns a new instance for a class, but does not register the component with webbeans.
public  ComponentFactorycreateFactory(Class type, Annotation... ann)
     Returns a new instance for a class, but does not register the component with webbeans.
public  voidcreateProgram(ArrayList<ConfigProgram> injectList, Field field)
    
public  voidcreateProgram(ArrayList<ConfigProgram> injectList, Method method)
    
public  ComponentFactory<T>createTransient(Class<T> type)
     Returns a ComponentFactory for a class, but does not register the component with webbeans.
public  voidenvironmentConfig(EnvironmentClassLoader loader)
    
public  voidenvironmentStart(EnvironmentClassLoader loader)
     Handles the case where the environment is starting (after init).
public  voidenvironmentStop(EnvironmentClassLoader loader)
    
public static  ConfigExceptionerror(Method method, String msg)
    
public  ComponentImplfindByName(String name)
     Finds a component by its component name.
public  ArrayList<Class>findInterceptors(ArrayList<Annotation> annList)
    
public  ClassLoadergetClassLoader()
    
public  ContextgetContext(Class<Annotation> scopeType)
    
public static  WebBeansContainergetCurrent()
     Returns the local container.
public static  WebBeansContainergetCurrent(ClassLoader loader)
     Returns the current environment container.
public  TgetEnvironmentObject(Class<T> type, Annotation... ann)
     Returns a new instance for a class, but does not register the component with webbeans.
public  TgetObject(Class<T> type, Annotation... ann)
     Returns a new instance for a class, but does not register the component with webbeans.
public  TgetObject(Class<T> type, String name)
     Returns a new instance for a class, but does not register the component with webbeans.
public  ObjectgetObjectByName(String name)
     Finds a component by its component name.
public  ScopeContextgetScopeContext(Class scope)
     Returns the scope context corresponding to the scope annotation type.
static  StringgetSimpleName(Type type)
    
public  WbWebBeansgetWbWebBeans()
    
public static  ConfigExceptioninjectError(AccessibleObject prop, String msg)
    
public  voidinjectObject(Object obj)
    
public  booleanisRootScannable(Path root)
     Returns true if the root is a valid scannable root.
public  booleanisScanMatch(CharBuffer annotationName)
    
public  ClassloadClass(String className)
    
public static  Stringlocation(Field field)
    
public static  Stringlocation(Method method)
    
public  voidraiseEvent(Object event, Annotation... bindings)
    
public  ComponentFactory<T>resolveByType(Class<T> apiType, Annotation... bindingTypes)
    
public  StringtoString()
    
public  voidupdate()
    
public  ObjectwriteReplace()
    



Method Detail
addComponent
public void addComponent(ComponentImpl comp)(Code)



addComponentByName
public void addComponentByName(String name, ComponentImpl comp)(Code)



addComponentByType
public void addComponentByType(Type type, ComponentImpl comp)(Code)
Adds a component by the interface type
Parameters:
  type - the interface type to expose the component
Parameters:
  comp - the component to register



addContext
public void addContext(Class<Annotation> scopeType, Context context)(Code)



addEnabledInterceptor
public void addEnabledInterceptor(Class cl)(Code)



addObserver
public void addObserver(ObserverImpl observer)(Code)



addSingleton
public void addSingleton(Object object)(Code)



addSingleton
public void addSingleton(Object object, String name)(Code)



addSingleton
public void addSingleton(Object object, String name, Class componentType)(Code)



addSingletonByName
public void addSingletonByName(Object object, String name)(Code)
Adds a singleton only to the name map
Parameters:
  object - the singleton value
Parameters:
  name - the singleton's name



bind
public ComponentImpl bind(String location, Type type, String name)(Code)
Returns the web beans component corresponding to a method and a @Named value



bind
public ComponentImpl bind(String location, Type type)(Code)
Returns the web beans component corresponding to the return type.



bind
public ComponentImpl bind(String location, Type type, Annotation[] paramAnn)(Code)
Returns the web beans component corresponding to a method parameter.



bind
public ComponentImpl bind(String location, Type type, ArrayList<Annotation> bindingList)(Code)
Returns the web beans component with a given binding list.



bind
public void bind()(Code)
Starts the bind phase



bindByBindings
public ComponentImpl bindByBindings(String location, Type type, ArrayList<Binding> bindingList)(Code)
Returns the web beans component with a given binding list.



classMatchEvent
public void classMatchEvent(EnvironmentClassLoader loader, Path root, String className)(Code)
Callback to note the class matches



create
public static WebBeansContainer create()(Code)
Returns the current active container.



create
public static WebBeansContainer create(ClassLoader loader)(Code)
Returns the current active container.



createComponentType
public WbComponentType createComponentType(Class cl)(Code)



createConversation
public Conversation createConversation()(Code)



createFactory
public T createFactory(Class<T> type, String name)(Code)
Returns a new instance for a class, but does not register the component with webbeans.



createFactory
public ComponentFactory createFactory(Class type, Annotation... ann)(Code)
Returns a new instance for a class, but does not register the component with webbeans.



createProgram
public void createProgram(ArrayList<ConfigProgram> injectList, Field field) throws ConfigException(Code)
Creates an injection program for the given field



createProgram
public void createProgram(ArrayList<ConfigProgram> injectList, Method method) throws ConfigException(Code)
Creates an injection program for the given method



createTransient
public ComponentFactory<T> createTransient(Class<T> type)(Code)
Returns a ComponentFactory for a class, but does not register the component with webbeans.



environmentConfig
public void environmentConfig(EnvironmentClassLoader loader)(Code)
Handles the case the environment config phase



environmentStart
public void environmentStart(EnvironmentClassLoader loader)(Code)
Handles the case where the environment is starting (after init).



environmentStop
public void environmentStop(EnvironmentClassLoader loader)(Code)
Handles the case where the environment is stopping



error
public static ConfigException error(Method method, String msg)(Code)



findByName
public ComponentImpl findByName(String name)(Code)
Finds a component by its component name.



findInterceptors
public ArrayList<Class> findInterceptors(ArrayList<Annotation> annList)(Code)



getClassLoader
public ClassLoader getClassLoader()(Code)



getContext
public Context getContext(Class<Annotation> scopeType)(Code)



getCurrent
public static WebBeansContainer getCurrent()(Code)
Returns the local container.



getCurrent
public static WebBeansContainer getCurrent(ClassLoader loader)(Code)
Returns the current environment container.



getEnvironmentObject
public T getEnvironmentObject(Class<T> type, Annotation... ann)(Code)
Returns a new instance for a class, but does not register the component with webbeans.



getObject
public T getObject(Class<T> type, Annotation... ann)(Code)
Returns a new instance for a class, but does not register the component with webbeans.



getObject
public T getObject(Class<T> type, String name)(Code)
Returns a new instance for a class, but does not register the component with webbeans.



getObjectByName
public Object getObjectByName(String name)(Code)
Finds a component by its component name.



getScopeContext
public ScopeContext getScopeContext(Class scope)(Code)
Returns the scope context corresponding to the scope annotation type.
Parameters:
  scope - the scope annotation type identifying the scope



getSimpleName
static String getSimpleName(Type type)(Code)



getWbWebBeans
public WbWebBeans getWbWebBeans()(Code)



injectError
public static ConfigException injectError(AccessibleObject prop, String msg)(Code)



injectObject
public void injectObject(Object obj)(Code)
Injects an object



isRootScannable
public boolean isRootScannable(Path root)(Code)
Returns true if the root is a valid scannable root.



isScanMatch
public boolean isScanMatch(CharBuffer annotationName)(Code)



loadClass
public Class loadClass(String className)(Code)



location
public static String location(Field field)(Code)



location
public static String location(Method method)(Code)



raiseEvent
public void raiseEvent(Object event, Annotation... bindings)(Code)
Sends the specified event to any observer instances in the scope



resolveByType
public ComponentFactory<T> resolveByType(Class<T> apiType, Annotation... bindingTypes)(Code)
Returns the component which matches the apiType and binding types



toString
public String toString()(Code)



update
public void update()(Code)



writeReplace
public Object writeReplace()(Code)
Serialization rewriting



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.