Java Doc for ComponentContainer.java in  » J2EE » Expresso » com » jcorporate » expresso » kernel » 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 » J2EE » Expresso » com.jcorporate.expresso.kernel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.kernel.ComponentContainer

All known Subclasses:   com.jcorporate.expresso.kernel.internal.ContainerImplBase,
ComponentContainer
public interface ComponentContainer (Code)
ContainerImpl is the equivelant of a Service Provider Interface (SPI) for the Expresso component containers. By implementing your own ContinainerImpl inteface, you can have its behavior 'duplicated' throughout all the other containers. This particular behavior is specified by the ContainerFactory class.

There is a one to one relationship between a ComponentContainer and a Containable object. The ComponentContainer always wraps the Containable object and the Containable object can be retrieved via the getContainercomponent() method.

The particular ComponentContainer implementation set for each Containable object is determined by the SystemFactory. Although it does not currently have code to dynamically load other ComponentContainer implementations, it would be rather simple to do so.


author:
   Michael Rimov
since:
   Expresso 5.1




Method Summary
public  voidaddComponent(ExpressoComponent newComponent)
     To register the component for control by the Component Manager.
public  voiddestroyContainer()
    
public  MapgetChildComponents()
     Retrieves a list of instances of all contained ExpressoComponents.
public  ContainablegetContainerComponent()
     Return the 'wrapped' container ExpressoComponent.
public  ComponentContainergetParentContainer()
    
public  voidinstallComponent(ExpressoComponent newComponent, InstallationOptions installOptions, InstallLog log)
     Install a component into the system.
public  booleanisComponentExists(String componentName)
     Query the container to see if a particular service name is installed in the system
Parameters:
  componentName - the name of the component to query for.
public  ExpressoComponentlocateComponent(String componentName)
     Locates an Expresso Service for use by a client.
Parameters:
  componentName - the name of the service to locate.
public  voidremoveComponent(String componentName)
     Removes a component from this container.
public  voidsetContainerComponent(Containable newComponent)
     Sets the nested component.
public  voidsetParentContainer(ComponentContainer newParent)
    
public  voiduninstallComponent(String componentName, InstallationOptions installOptions, InstallLog log)
     Uninstalls the component.



Method Detail
addComponent
public void addComponent(ExpressoComponent newComponent)(Code)
To register the component for control by the Component Manager. This will in essense transfer the control of ther service to the Component Manager. This will often be called by the Configuration Bootstrap system.
Parameters:
  newComponent - the component to install



destroyContainer
public void destroyContainer()(Code)
Called when the container is to be destroyed



getChildComponents
public Map getChildComponents()(Code)
Retrieves a list of instances of all contained ExpressoComponents. Use this for iterating through the components of a current 'context'. Do not attempt to modify the map given. Either add or remove a component through the addComponent or removeComponent methods. Read only map of the components.



getContainerComponent
public Containable getContainerComponent()(Code)
Return the 'wrapped' container ExpressoComponent. Containable



getParentContainer
public ComponentContainer getParentContainer()(Code)
Return the parent container ContainerImpl interface



installComponent
public void installComponent(ExpressoComponent newComponent, InstallationOptions installOptions, InstallLog log)(Code)
Install a component into the system. If newComponent implements installable then it shall be installed. After that, the component is added.
Parameters:
  newComponent - An instance of the component to install.
Parameters:
  log - a Logger-like interface to a component tha records the processof the installation including any errors, etc.
Parameters:
  installOptions - The Installation Options for the Component



isComponentExists
public boolean isComponentExists(String componentName)(Code)
Query the container to see if a particular service name is installed in the system
Parameters:
  componentName - the name of the component to query for. true if the service is installed and running.



locateComponent
public ExpressoComponent locateComponent(String componentName)(Code)
Locates an Expresso Service for use by a client.
Parameters:
  componentName - the name of the service to locate. ExpressoService.
throws:
  IllegalArgumentException - if the service cannot be found.
throws:
  IllegalStateException - if the service exists, but is not in a'runnable' state due to some configuration error or other unforeseenissue.



removeComponent
public void removeComponent(String componentName)(Code)
Removes a component from this container.
Parameters:
  componentName - The name of the component to remove.



setContainerComponent
public void setContainerComponent(Containable newComponent)(Code)
Sets the nested component. This is usually called by the system factory.
Parameters:
  newComponent - the component links to this component containerobject.



setParentContainer
public void setParentContainer(ComponentContainer newParent)(Code)
Set the parent container of this container
Parameters:
  newParent - the new Parent Container



uninstallComponent
public void uninstallComponent(String componentName, InstallationOptions installOptions, InstallLog log)(Code)
Uninstalls the component. If the component implements installable then it shall be uninstalled. After that, it shall be removed.
Parameters:
  componentName - the name of the component to uninstall
Parameters:
  log - a Logger-like interface to a component tha records the processof the installation including any errors, etc.
Parameters:
  installOptions - The 'Uninstallation' options for the component



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