info.magnolia.module.blossom.context
Class MagnoliaComponentFactoryBean
java.lang.Object
info.magnolia.module.blossom.context.MagnoliaComponentFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean
public class MagnoliaComponentFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean
FactoryBean for exposing Magnolia components in a bean factory. Useful as it allows magnolia components to be
dependency injected.
- Since:
- 1.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MagnoliaComponentFactoryBean
public MagnoliaComponentFactoryBean()
getType
public Class<?> getType()
setType
public void setType(Class<?> type)
getObject
public Object getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.