info.magnolia.objectfactory.configuration
Class ComponentProviderConfiguration

java.lang.Object
  extended by info.magnolia.objectfactory.configuration.ComponentProviderConfiguration
All Implemented Interfaces:
Cloneable

public class ComponentProviderConfiguration
extends Object
implements Cloneable

Configuration used to create component providers.

Version:
$Id$

Constructor Summary
ComponentProviderConfiguration()
           
 
Method Summary
 void addComponent(ComponentConfiguration componentConfiguration)
           
 boolean addConfigurer(ComponentConfigurer configurer)
           
 void addTypeMapping(Class<?> from, Class<?> to)
           
 ComponentProviderConfiguration clone()
           
 void combine(ComponentProviderConfiguration components)
           
 Map<Class,ComponentConfiguration> getComponents()
           
 List<ComponentConfigurer> getConfigurers()
           
 Map<Class<?>,Class<?>> getTypeMapping()
           
<T> void
registerImplementation(Class<T> type)
           
<T> void
registerImplementation(Class<T> type, Class<? extends T> implementation)
           
<T> void
registerInstance(Class<T> type, Object instance)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentProviderConfiguration

public ComponentProviderConfiguration()
Method Detail

addComponent

public void addComponent(ComponentConfiguration componentConfiguration)

addTypeMapping

public void addTypeMapping(Class<?> from,
                           Class<?> to)

getTypeMapping

public Map<Class<?>,Class<?>> getTypeMapping()

getComponents

public Map<Class,ComponentConfiguration> getComponents()

getConfigurers

public List<ComponentConfigurer> getConfigurers()

addConfigurer

public boolean addConfigurer(ComponentConfigurer configurer)

registerImplementation

public <T> void registerImplementation(Class<T> type,
                                       Class<? extends T> implementation)

registerImplementation

public <T> void registerImplementation(Class<T> type)

registerInstance

public <T> void registerInstance(Class<T> type,
                                 Object instance)

combine

public void combine(ComponentProviderConfiguration components)

clone

public ComponentProviderConfiguration clone()
Overrides:
clone in class Object


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.