org.codehaus.plexus.component.connector
Class ConnectorGenerator

java.lang.Object
  extended byorg.codehaus.plexus.component.connector.ConnectorGenerator

public class ConnectorGenerator
extends java.lang.Object

Generates component connectors. - two components connected by role - look at the interface - client and provider Client making a use of the services provided by the component C1 via the connector Con1. Client Provider +-------+ +-------+ | | | | | | -------> Connector --------> | | +-------+ +-------+ The connector will have the same interface as the Provider and the client will be given a reference to the connector and not the Provider directly.


Nested Class Summary
 class ConnectorGenerator.SyntheticClassLoader
           
 
Field Summary
private static java.lang.String BASE_CLASS
           
private static java.lang.String CONNECTOR_INTERFACE
           
private static java.lang.String PROVIDER_FIELD_NAME
           
 
Constructor Summary
ConnectorGenerator()
           
 
Method Summary
private static java.lang.String baseName(java.lang.Class clazz)
           
 java.lang.Object generate(java.lang.ClassLoader classLoader, java.lang.Class providerInterface, java.lang.Object component)
           
private static java.lang.String internalName(java.lang.Class clazz)
           
private static java.lang.String slashName(java.lang.Class clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER_FIELD_NAME

private static java.lang.String PROVIDER_FIELD_NAME

BASE_CLASS

private static java.lang.String BASE_CLASS

CONNECTOR_INTERFACE

private static java.lang.String CONNECTOR_INTERFACE
Constructor Detail

ConnectorGenerator

public ConnectorGenerator()
Method Detail

generate

public java.lang.Object generate(java.lang.ClassLoader classLoader,
                                 java.lang.Class providerInterface,
                                 java.lang.Object component)
                          throws java.lang.Exception
Throws:
java.lang.Exception

baseName

private static java.lang.String baseName(java.lang.Class clazz)

internalName

private static java.lang.String internalName(java.lang.Class clazz)

slashName

private static java.lang.String slashName(java.lang.Class clazz)