info.magnolia.objectfactory.configuration
Class ComponentProviderConfigurationBuilder

java.lang.Object
  extended by info.magnolia.objectfactory.configuration.ComponentProviderConfigurationBuilder

public class ComponentProviderConfigurationBuilder
extends Object

Builder for creating ComponentProviderConfigurations from component definitions.

Version:
$Id$

Constructor Summary
ComponentProviderConfigurationBuilder()
           
 
Method Summary
 void addComponents(ComponentProviderConfiguration configuration, ComponentsDefinition componentsDefinition)
           
protected  Class<?> classForName(String className)
          Returns the class denoted by the supplied class name without initializing the class.
protected  ComponentConfiguration getComponent(ComponentDefinition definition)
           
 ComponentProviderConfiguration getComponentsFromModules(String id, List<ModuleDefinition> moduleDefinitions)
          Reads component definitions from module descriptors and return a ComponentProviderConfiguration containing all components with the given id.
protected  ComponentConfiguration getConfigured(ComponentDefinition definition)
           
protected  ComponentConfigurer getConfigurer(ConfigurerDefinition configurerDefinition)
           
protected  ImplementationConfiguration getImplementation(ComponentDefinition definition)
           
protected  ComponentConfiguration getObserved(ComponentDefinition definition)
           
protected  ComponentConfiguration getProvider(ComponentDefinition definition)
           
protected  boolean isConfigured(ComponentDefinition definition)
           
protected  boolean isImplementation(ComponentDefinition definition)
           
protected  boolean isObserved(ComponentDefinition definition)
           
protected  boolean isProvider(ComponentDefinition definition)
           
protected  boolean parseLazyFlag(ComponentDefinition definition)
           
 ComponentProviderConfiguration readConfiguration(List<String> resourcePaths, String id)
          Reads component definitions from the specified resources and returns a ComponentProviderConfiguration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentProviderConfigurationBuilder

public ComponentProviderConfigurationBuilder()
Method Detail

readConfiguration

public ComponentProviderConfiguration readConfiguration(List<String> resourcePaths,
                                                        String id)
Reads component definitions from the specified resources and returns a ComponentProviderConfiguration.


getComponentsFromModules

public ComponentProviderConfiguration getComponentsFromModules(String id,
                                                               List<ModuleDefinition> moduleDefinitions)
Reads component definitions from module descriptors and return a ComponentProviderConfiguration containing all components with the given id.


addComponents

public void addComponents(ComponentProviderConfiguration configuration,
                          ComponentsDefinition componentsDefinition)

getConfigurer

protected ComponentConfigurer getConfigurer(ConfigurerDefinition configurerDefinition)

getComponent

protected ComponentConfiguration getComponent(ComponentDefinition definition)

getImplementation

protected ImplementationConfiguration getImplementation(ComponentDefinition definition)

getProvider

protected ComponentConfiguration getProvider(ComponentDefinition definition)

getConfigured

protected ComponentConfiguration getConfigured(ComponentDefinition definition)

getObserved

protected ComponentConfiguration getObserved(ComponentDefinition definition)

isImplementation

protected boolean isImplementation(ComponentDefinition definition)

isProvider

protected boolean isProvider(ComponentDefinition definition)

isConfigured

protected boolean isConfigured(ComponentDefinition definition)

isObserved

protected boolean isObserved(ComponentDefinition definition)

parseLazyFlag

protected boolean parseLazyFlag(ComponentDefinition definition)

classForName

protected Class<?> classForName(String className)
Returns the class denoted by the supplied class name without initializing the class.



Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.