info.magnolia.objectfactory.configuration
Class InstanceConfiguration<T>
java.lang.Object
info.magnolia.objectfactory.configuration.ComponentConfiguration<T>
info.magnolia.objectfactory.configuration.InstanceConfiguration<T>
- Type Parameters:
T
- the type
- All Implemented Interfaces:
- Cloneable
public class InstanceConfiguration<T>
- extends ComponentConfiguration<T>
A configuration providing a concrete instance or a factory of type
ComponentFactory
or Provider
.
- Version:
- $Id$
InstanceConfiguration
public InstanceConfiguration(Class<T> type,
Object instance)
getInstance
public Object getInstance()
setInstance
public void setInstance(T instance)
valueOf
public static <Y> InstanceConfiguration<Y> valueOf(Class<Y> clazz,
Object instance)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.