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

java.lang.Object
  extended by info.magnolia.objectfactory.configuration.ComponentConfiguration<T>
      extended by 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$

Constructor Summary
InstanceConfiguration(Class<T> type, Object instance)
           
 
Method Summary
 Object getInstance()
           
 void setInstance(T instance)
           
static
<Y> InstanceConfiguration<Y>
valueOf(Class<Y> clazz, Object instance)
           
 
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

InstanceConfiguration

public InstanceConfiguration(Class<T> type,
                             Object instance)
Method Detail

getInstance

public Object getInstance()

setInstance

public void setInstance(T instance)

valueOf

public static <Y> InstanceConfiguration<Y> valueOf(Class<Y> clazz,
                                                   Object instance)


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