info.magnolia.objectfactory.configuration
Class ImplementationConfiguration<T>

java.lang.Object
  extended by info.magnolia.objectfactory.configuration.ComponentConfiguration<T>
      extended by info.magnolia.objectfactory.configuration.ImplementationConfiguration<T>
Type Parameters:
T - the type
All Implemented Interfaces:
Cloneable

public class ImplementationConfiguration<T>
extends ComponentConfiguration<T>

A simple mapping from type to implementation.


Constructor Summary
ImplementationConfiguration()
           
ImplementationConfiguration(Class<T> type, Class<? extends T> implementation)
           
 
Method Summary
 Class<? extends T> getImplementation()
           
 void setImplementation(Class<? extends T> implementation)
           
static
<T> ImplementationConfiguration<T>
valueOf(Class<T> type, Class<? extends T> implementation)
           
 
Methods inherited from class info.magnolia.objectfactory.configuration.ComponentConfiguration
clone, getScope, getType, isLazy, setLazy, setScope, setType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationConfiguration

public ImplementationConfiguration()

ImplementationConfiguration

public ImplementationConfiguration(Class<T> type,
                                   Class<? extends T> implementation)
Method Detail

getImplementation

public Class<? extends T> getImplementation()

setImplementation

public void setImplementation(Class<? extends T> implementation)

valueOf

public static <T> ImplementationConfiguration<T> valueOf(Class<T> type,
                                                         Class<? extends T> implementation)


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