Java Doc for CocoonComponentManager.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.components 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.CocoonComponentManager

All known Subclasses:   org.apache.cocoon.environment.CocoonRunnable,
CocoonComponentManager
final public class CocoonComponentManager extends ExcaliburComponentManager implements SourceResolver,Component(Code)
Cocoon Component Manager. This manager extends the ExcaliburComponentManager by a special lifecycle handling for a RequestLifecycleComponent and by handling the lookup of the SourceResolver . WARNING: This is a "private" Cocoon core class - do NOT use this class directly - and do not assume that a ComponentManager you get via the compose() method is an instance of CocoonComponentManager.
author:
   Björn Lütkemeier
author:
   Carsten Ziegeler
version:
   CVS $Id: CocoonComponentManager.java 540711 2007-05-22 19:36:07Z cziegeler $

Inner Class :abstract public static class AbstractCocoonRunnable implements Runnable

Field Summary
final protected static  ThreadLocalenvironmentStack
    

Constructor Summary
public  CocoonComponentManager()
    
public  CocoonComponentManager(ClassLoader loader)
    
public  CocoonComponentManager(ComponentManager manager, ClassLoader loader)
    
public  CocoonComponentManager(ComponentManager manager)
    

Method Summary
public  voidaddComponent(String role, Class clazz, Configuration conf)
    
public static  voidaddComponentForAutomaticRelease(ComponentSelector selector, Component component, ComponentManager manager)
    
public static  voidaddComponentForAutomaticRelease(ComponentManager manager, Component component)
    
public static  voidcheckEnvironment(int depth, Logger logger)
     INTERNAL METHOD.
public static  XMLConsumercreateEnvironmentAwareConsumer(XMLConsumer consumer)
    
public  voiddispose()
    
public static  voidendProcessing(Environment env, Object key)
     This hook has to be called before a request is processed.
public static  voidenterEnvironment(Environment env, ComponentManager manager, Processor processor)
    
public static  ProcessorgetActiveProcessor(Environment env)
    
public static  EnvironmentgetCurrentEnvironment()
    
public static  ProcessorgetCurrentProcessor()
    
public static  ComponentManagergetSitemapComponentManager()
     Get the current sitemap component manager. This method return the current sitemap component manager.
public  voidinitialize()
    
public static  voidleaveEnvironment()
     This hook must be called by the sitemap each time a sitemap is left.
public static  voidleaveEnvironment(boolean success)
     This hook must be called by the sitemap each time a sitemap is left.
public  Componentlookup(String role)
     Return an instance of a component based on a Role.
public static  intmarkEnvironment()
     INTERNAL METHOD.
public  voidrelease(Component component)
     Release a Component.
public  voidrelease(Source source)
    
protected  voidreleaseRLComponent(Component component)
    
public static  voidremoveFromAutomaticRelease(Component component)
    
public  SourceresolveURI(String location)
     Get a Source object.
public  SourceresolveURI(String location, String baseURI, Map parameters)
     Get a Source object.
public  voidsetInstrumentManager(InstrumentManager iManager)
    
protected  voidsetParentManager(ComponentManager manager)
    
public static  ObjectstartProcessing(Environment env)
     This hook has to be called before a request is processed.

Field Detail
environmentStack
final protected static ThreadLocal environmentStack(Code)
The environment information




Constructor Detail
CocoonComponentManager
public CocoonComponentManager()(Code)
Create the ComponentManager



CocoonComponentManager
public CocoonComponentManager(ClassLoader loader)(Code)
Create the ComponentManager with a Classloader



CocoonComponentManager
public CocoonComponentManager(ComponentManager manager, ClassLoader loader)(Code)
Create the ComponentManager with a Classloader and parent ComponentManager



CocoonComponentManager
public CocoonComponentManager(ComponentManager manager)(Code)
Create the ComponentManager with a parent ComponentManager




Method Detail
addComponent
public void addComponent(String role, Class clazz, Configuration conf) throws ComponentException(Code)



addComponentForAutomaticRelease
public static void addComponentForAutomaticRelease(ComponentSelector selector, Component component, ComponentManager manager) throws ProcessingException(Code)
Add an automatically released component



addComponentForAutomaticRelease
public static void addComponentForAutomaticRelease(ComponentManager manager, Component component) throws ProcessingException(Code)
Add an automatically released component



checkEnvironment
public static void checkEnvironment(int depth, Logger logger) throws Exception(Code)
INTERNAL METHOD. Do not use, can be removed without warning or deprecation cycle.



createEnvironmentAwareConsumer
public static XMLConsumer createEnvironmentAwareConsumer(XMLConsumer consumer)(Code)
Create an environment aware xml consumer for the cocoon protocol



dispose
public void dispose()(Code)
Dispose



endProcessing
public static void endProcessing(Environment env, Object key)(Code)
This hook has to be called before a request is processed. The hook is called by the Cocoon component and by the cocoon protocol implementation.
Parameters:
  key - A unique key within this thread return byCocoonComponentManager.startProcessing(Environment).



enterEnvironment
public static void enterEnvironment(Environment env, ComponentManager manager, Processor processor)(Code)
This hook must be called by the sitemap each time a sitemap is entered This method should never raise an exception, except when the parameters are not set!



getActiveProcessor
public static Processor getActiveProcessor(Environment env)(Code)
Return the processor that has actually processed the request



getCurrentEnvironment
public static Environment getCurrentEnvironment()(Code)
Return the current environment (for the cocoon: protocol)



getCurrentProcessor
public static Processor getCurrentProcessor()(Code)
Return the current processor (for the cocoon: protocol)



getSitemapComponentManager
public static ComponentManager getSitemapComponentManager()(Code)
Get the current sitemap component manager. This method return the current sitemap component manager. This is the manager that holds all the components of the currently processed (sub)sitemap.



initialize
public void initialize() throws Exception(Code)



leaveEnvironment
public static void leaveEnvironment()(Code)
This hook must be called by the sitemap each time a sitemap is left. It's the counterpart to CocoonComponentManager.enterEnvironment(Environment,ComponentManager,Processor) .



leaveEnvironment
public static void leaveEnvironment(boolean success)(Code)
This hook must be called by the sitemap each time a sitemap is left. It's the counterpart to CocoonComponentManager.enterEnvironment(Environment,ComponentManager,Processor) .
Parameters:
  success - indicates if the request was successfully handled by the environment that's being left



lookup
public Component lookup(String role) throws ComponentException(Code)
Return an instance of a component based on a Role. The Role is usually the Interface's Fully Qualified Name(FQN)--unless there are multiple Components for the same Role. In that case, the Role's FQN is appended with "Selector", and we return a ComponentSelector.



markEnvironment
public static int markEnvironment()(Code)
INTERNAL METHOD. Do not use, can be removed without warning or deprecation cycle.



release
public void release(Component component)(Code)
Release a Component. This implementation makes sure it has a handle on the propper ComponentHandler, and let's the ComponentHandler take care of the actual work.



release
public void release(Source source)(Code)
Releases a resolved resource



releaseRLComponent
protected void releaseRLComponent(Component component)(Code)
Release a RequestLifecycleComponent



removeFromAutomaticRelease
public static void removeFromAutomaticRelease(Component component) throws ProcessingException(Code)
Remove from automatically released components



resolveURI
public Source resolveURI(String location) throws MalformedURLException, IOException, SourceException(Code)
Get a Source object.



resolveURI
public Source resolveURI(String location, String baseURI, Map parameters) throws MalformedURLException, IOException, SourceException(Code)
Get a Source object.



setInstrumentManager
public void setInstrumentManager(InstrumentManager iManager)(Code)

See Also:   org.apache.avalon.excalibur.component.ExcaliburComponentManager.setInstrumentManager(org.apache.excalibur.instrument.InstrumentManager)



setParentManager
protected void setParentManager(ComponentManager manager)(Code)



startProcessing
public static Object startProcessing(Environment env)(Code)
This hook has to be called before a request is processed. The hook is called by the Cocoon component and by the cocoon protocol implementation. This method should never raise an exception, except when the environment is not set. A unique key within this thread.



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