Java Doc for DefaultComponent.java in  » ESB » servicemix » org » apache » servicemix » common » 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 » ESB » servicemix » org.apache.servicemix.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.servicemix.common.AsyncBaseLifeCycle
      org.apache.servicemix.common.BaseLifeCycle
         org.apache.servicemix.common.DefaultComponent

All known Subclasses:   org.apache.servicemix.bean.BeanComponent,  org.apache.servicemix.cxfbc.CxfBcComponent,  org.apache.servicemix.cxfse.CxfSeComponent,  org.apache.servicemix.jsr181.Jsr181Component,  org.apache.servicemix.saxon.SaxonComponent,  org.apache.servicemix.ftp.FtpComponent,  org.apache.servicemix.mail.MailComponent,  org.apache.servicemix.quartz.QuartzComponent,  org.apache.servicemix.eip.EIPComponent,  org.apache.servicemix.truezip.TrueZipComponent,  org.apache.servicemix.http.HttpComponent,  org.apache.servicemix.file.FileComponent,  org.apache.servicemix.jms.JmsComponent,  org.apache.servicemix.xmpp.XMPPComponent,  org.apache.servicemix.script.ScriptComponent,  org.apache.servicemix.drools.DroolsComponent,  org.apache.servicemix.camel.CamelJbiComponent,  org.apache.servicemix.osworkflow.OSWorkflowComponent,
DefaultComponent
abstract public class DefaultComponent extends BaseLifeCycle implements ServiceMixComponent(Code)
A useful base class for writing new JBI components which includes the ComponentLifeCycle interface methods so that you can write a new component in a single class with minimal overloading.
version:
   $Revision: 584990 $


Field Summary
final protected transient  Loglogger
    
protected  Registryregistry
    
protected  ServiceUnitserviceUnit
    
protected  BaseServiceUnitManagerserviceUnitManager
    

Constructor Summary
public  DefaultComponent()
    

Method Summary
public  voidaddEndpoint(Endpoint endpoint)
    
protected static  ListasList(Object[] endpoints)
    
protected  RegistrycreateRegistry()
    
protected  BaseServiceUnitManagercreateServiceUnitManager()
     Create the service unit manager.
protected  voiddoInit()
    
protected  voiddoShutDown()
    
protected  voiddoStart()
    
protected  voiddoStop()
    
public  ComponentContextgetComponentContext()
    
public  StringgetComponentName()
    
abstract protected  ListgetConfiguredEndpoints()
    
public  QNamegetEPRElementName()
    
protected  String[]getEPRProtocols()
    
public  QNamegetEPRServiceName()
    
abstract protected  Class[]getEndpointClasses()
    
public  ComponentLifeCyclegetLifeCycle()
    
public  LoggetLogger()
    
public  RegistrygetRegistry()
    
public  DocumentgetServiceDescription(ServiceEndpoint endpoint)
    
public  ServiceUnitgetServiceUnit()
    
public  ServiceUnitManagergetServiceUnitManager()
    
public  booleanisExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange)
    
public  booleanisExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange)
    
public  voidremoveEndpoint(Endpoint endpoint)
    
public  ServiceEndpointresolveEndpointReference(DocumentFragment epr)
    
protected  voidvalidateEndpoint(Endpoint endpoint)
    

Field Detail
logger
final protected transient Log logger(Code)



registry
protected Registry registry(Code)



serviceUnit
protected ServiceUnit serviceUnit(Code)



serviceUnitManager
protected BaseServiceUnitManager serviceUnitManager(Code)




Constructor Detail
DefaultComponent
public DefaultComponent()(Code)




Method Detail
addEndpoint
public void addEndpoint(Endpoint endpoint) throws Exception(Code)
Dynamically adds a new endpoint



asList
protected static List asList(Object[] endpoints)(Code)
A little helper method to turn a possibly null list of endpoints into a list of endpoints



createRegistry
protected Registry createRegistry()(Code)



createServiceUnitManager
protected BaseServiceUnitManager createServiceUnitManager()(Code)
Create the service unit manager. Derived classes should override this method and return a BaseServiceUnitManager so that the component is able to handle service unit deployment. The default implementation will create a @{link BaseXBeanDeployer} instance using the value of @{link #getEndpointClasses()} if that method returns a non-null value otherwise it returns null. a newly created service unit manager



doInit
protected void doInit() throws Exception(Code)



doShutDown
protected void doShutDown() throws Exception(Code)



doStart
protected void doStart() throws Exception(Code)



doStop
protected void doStop() throws Exception(Code)



getComponentContext
public ComponentContext getComponentContext()(Code)



getComponentName
public String getComponentName()(Code)



getConfiguredEndpoints
abstract protected List getConfiguredEndpoints()(Code)
Returns an array of configured endpoints for the component or null if there are no configured endpoints



getEPRElementName
public QName getEPRElementName()(Code)



getEPRProtocols
protected String[] getEPRProtocols()(Code)



getEPRServiceName
public QName getEPRServiceName()(Code)



getEndpointClasses
abstract protected Class[] getEndpointClasses()(Code)
Returns a list of valid endpoint classes or null if the component does not wish to programmatically restrict the list of possible endpoint classes the endpoint classes used to validate configuration or null to disable the validation



getLifeCycle
public ComponentLifeCycle getLifeCycle()(Code)



getLogger
public Log getLogger()(Code)
Returns the logger.



getRegistry
public Registry getRegistry()(Code)
Returns the registry.



getServiceDescription
public Document getServiceDescription(ServiceEndpoint endpoint)(Code)



getServiceUnit
public ServiceUnit getServiceUnit()(Code)
Returns the service unit, lazily creating one on demand the service unit if one is being used.



getServiceUnitManager
public ServiceUnitManager getServiceUnitManager()(Code)



isExchangeWithConsumerOkay
public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code)



isExchangeWithProviderOkay
public boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code)



removeEndpoint
public void removeEndpoint(Endpoint endpoint) throws Exception(Code)



resolveEndpointReference
public ServiceEndpoint resolveEndpointReference(DocumentFragment epr)(Code)



validateEndpoint
protected void validateEndpoint(Endpoint endpoint) throws DeploymentException(Code)
Provides a hook to validate the statically configured endpoint



Methods inherited from org.apache.servicemix.common.BaseLifeCycle
public void onMessageExchange(MessageExchange exchange)(Code)(Java Doc)

Fields inherited from org.apache.servicemix.common.AsyncBaseLifeCycle
final public static String INITIALIZED(Code)(Java Doc)
protected DeliveryChannel channel(Code)(Java Doc)
protected ServiceMixComponent component(Code)(Java Doc)
protected ComponentContext context(Code)(Java Doc)
protected ThreadLocal<String> correlationId(Code)(Java Doc)
protected String currentState(Code)(Java Doc)
protected Executor executor(Code)(Java Doc)
protected ExecutorFactory executorFactory(Code)(Java Doc)
protected transient Log logger(Code)(Java Doc)
protected ObjectName mbeanName(Code)(Java Doc)
protected Thread poller(Code)(Java Doc)
protected AtomicBoolean polling(Code)(Java Doc)
protected Map<String, ExchangeProcessor> processors(Code)(Java Doc)
protected AtomicBoolean running(Code)(Java Doc)
protected TransactionManager transactionManager(Code)(Java Doc)
protected boolean workManagerCreated(Code)(Java Doc)

Methods inherited from org.apache.servicemix.common.AsyncBaseLifeCycle
protected ExecutorFactory createExecutorFactory()(Code)(Java Doc)
protected ObjectName createExtensionMBeanName() throws Exception(Code)(Java Doc)
protected void doInit() throws Exception(Code)(Java Doc)
protected void doShutDown() throws Exception(Code)(Java Doc)
protected void doStart() throws Exception(Code)(Java Doc)
protected void doStop() throws Exception(Code)(Java Doc)
protected boolean exceptionShouldRollbackTx(Exception e)(Code)(Java Doc)
protected ExecutorFactory findExecutorFactory()(Code)(Java Doc)
public ComponentContext getContext()(Code)(Java Doc)
public String getCurrentState()(Code)(Java Doc)
public QName getEPRServiceName()(Code)(Java Doc)
public Executor getExecutor()(Code)(Java Doc)
protected Object getExtensionMBean() throws Exception(Code)(Java Doc)
public ObjectName getExtensionMBeanName()(Code)(Java Doc)
protected Endpoint getResolvedEPR(ServiceEndpoint ep) throws Exception(Code)(Java Doc)
public void init(ComponentContext context) throws JBIException(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public boolean isShutDown()(Code)(Java Doc)
public boolean isStarted()(Code)(Java Doc)
public boolean isStopped()(Code)(Java Doc)
public boolean isUnknown()(Code)(Java Doc)
protected void pollDeliveryChannel()(Code)(Java Doc)
public void prepareConsumerExchange(MessageExchange exchange, Endpoint endpoint)(Code)(Java Doc)
protected void processExchange(MessageExchange exchange) throws Exception(Code)(Java Doc)
protected void processExchangeInTx(MessageExchange exchange, Transaction tx)(Code)(Java Doc)
public void sendConsumerExchange(MessageExchange exchange, ExchangeProcessor processor) throws MessagingException(Code)(Java Doc)
public void sendConsumerExchange(MessageExchange exchange, Endpoint endpoint) throws MessagingException(Code)(Java Doc)
protected void setComponent(ServiceMixComponent component)(Code)(Java Doc)
protected void setCurrentState(String currentState)(Code)(Java Doc)
public void shutDown() throws JBIException(Code)(Java Doc)
public void start() throws JBIException(Code)(Java Doc)
public void stop() throws JBIException(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.