Java Doc for DefaultContainerImpl.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) 


java.lang.Object
   com.jcorporate.expresso.kernel.internal.ContainerImplBase
      com.jcorporate.expresso.kernel.DefaultContainerImpl

DefaultContainerImpl
public class DefaultContainerImpl extends ContainerImplBase (Code)
This class is the default Container Implementation used by the Expresso Framework. You can change this by modifying the SystemFactory.

It provides basic container usability such as component location, component management, component listeners, etc


author:
   Michael Rimov



Constructor Summary
public  DefaultContainerImpl()
     Basic constructor.

Method Summary
protected  ComponentContainer_getParentContainer()
    
protected  boolean_isComponentExists(String componentName)
     Version of isComponentExists without the locking.
public  voidaddComponent(ExpressoComponent newComponent)
     To register the component for control by the Component Manager.
public  voiddestroyContainer()
     Global Container Destruction.
protected  voidfinalize()
     Just in case.....
public  MapgetChildComponents()
     Retrieves a list of instances of all contained ExpressoComponents.
public  ComponentContainergetParentContainer()
    
public  voidinstallComponent(ExpressoComponent newComponent, InstallationOptions installOptions, InstallLog installLog)
     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  voidsetParentContainer(ComponentContainer newParent)
    
public  voiduninstallComponent(String componentName, InstallationOptions installOptions, InstallLog installLog)
     Uninstalls the component.


Constructor Detail
DefaultContainerImpl
public DefaultContainerImpl()(Code)
Basic constructor.




Method Detail
_getParentContainer
protected ComponentContainer _getParentContainer()(Code)
getParentContainer without the locking ComponentContainer instance



_isComponentExists
protected boolean _isComponentExists(String componentName)(Code)
Version of isComponentExists without the locking. Prevents deadlocks for internal use.
Parameters:
  componentName - the name of the component true if the component exists



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)
Global Container Destruction. Iterate depth first through all the subcompoennts, possibly calling stop, and possibly calling destroy.



finalize
protected void finalize() throws java.lang.Throwable(Code)
Just in case..... if all references to the root container have been released and GC is running, then make sure we 'cleanly' destroy all nested components. Of course, since finalize() doesn't necessarily get called, this isn't a guaranteed fixit.. but at least it's a shot in the right direction



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.



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



installComponent
public void installComponent(ExpressoComponent newComponent, InstallationOptions installOptions, InstallLog installLog)(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:
  installOptions - any installation options [optional]
Parameters:
  installLog - a Logger-like interface to a component tha records the processof the installation including any errors, etc.



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.



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 installLog)(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:
  installLog - a Logger-like interface to a component tha records the processof the installation including any errors, etc.
Parameters:
  installOptions - any installation options to use.



Methods inherited from com.jcorporate.expresso.kernel.internal.ContainerImplBase
abstract public void addComponent(ExpressoComponent newComponent)(Code)(Java Doc)
public void destroyContainer()(Code)(Java Doc)
abstract public Map getChildComponents()(Code)(Java Doc)
public Containable getContainerComponent()(Code)(Java Doc)
public ComponentContainer getParentContainer()(Code)(Java Doc)
abstract public void installComponent(ExpressoComponent newComponent, InstallationOptions installOptions, InstallLog log)(Code)(Java Doc)
abstract public boolean isComponentExists(String componentName)(Code)(Java Doc)
abstract public ExpressoComponent locateComponent(String componentName)(Code)(Java Doc)
abstract public void removeComponent(String componentName)(Code)(Java Doc)
public void setContainerComponent(Containable newComponent)(Code)(Java Doc)
public void setParentContainer(ComponentContainer newParent)(Code)(Java Doc)
abstract public void uninstallComponent(String componentName, InstallationOptions installOptions, InstallLog log)(Code)(Java Doc)

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.