org.objectweb.proactive.core.component.xml
Class Loader

java.lang.Object
  |
  +--org.objectweb.proactive.core.component.xml.Loader

public class Loader
extends java.lang.Object

This class is used for automatic deployment of components with the ADL. Virtual nodes specified in the ADL have to match with virtual nodes defined in the deployment descriptor. The deployment process is the following : 1. instatiation of the components on virtual nodes defined in the deployment descriptor 2. storing of component references in a cache 3. assembly of the components 4. binding of the components Components are then accessible through the components cache.

Author:
Matthieu Morel

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
Loader()
           
 
Method Summary
 Component getComponent(java.lang.String name)
          Returns an instantiated+deployed+assembled+bound component from the cache.
 void loadComponentsConfiguration(java.lang.String componentsDescriptorURL, ProActiveDescriptor deploymentDescriptor)
          Configures and instantiates a component system : creation of the components, deployment on virtual nodes, assembly and binding.
 void loadComponentsConfiguration(java.lang.String componentsDescriptorLocation, java.lang.String deploymentDescriptorLocation)
          Configures and instantiates a component system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

Loader

public Loader()
Method Detail

loadComponentsConfiguration

public void loadComponentsConfiguration(java.lang.String componentsDescriptorURL,
                                        ProActiveDescriptor deploymentDescriptor)
                                 throws ProActiveException
Configures and instantiates a component system : creation of the components, deployment on virtual nodes, assembly and binding. Components are indexed by their name in a local cache, and can be retreived from there.

Parameters:
componentsDescriptorURL - the location of the components descriptor
deploymentDescriptor - an instance of ProActiveDescriptor, representing the deployment descriptor
Throws:
ProActiveException - in case of a failure

loadComponentsConfiguration

public void loadComponentsConfiguration(java.lang.String componentsDescriptorLocation,
                                        java.lang.String deploymentDescriptorLocation)
                                 throws ProActiveException
Configures and instantiates a component system.

Parameters:
componentsDescriptorLocation - the location of the components descriptor
deploymentDescriptorLocation - the location of the deployment descriptor
Throws:
ProActiveException - in case of a failure

getComponent

public Component getComponent(java.lang.String name)
Returns an instantiated+deployed+assembled+bound component from the cache.

Parameters:
name - the name of a component
Returns:
the named component


Copyright © April 2004 INRIA All Rights Reserved.