net.sf.oxclient.factory
Class BeanManager

java.lang.Object
  extended by net.sf.oxclient.factory.BeanManager
All Implemented Interfaces:
IBeanFactory, IBeanHelper

@Guarded
public class BeanManager
extends Object
implements IBeanFactory, IBeanHelper

Author:
Björn Voß

Constructor Summary
BeanManager()
           
 
Method Summary
<E> E
createNewInstance(Class<E> clazz)
          Create a instances of the given class.
 void setBeanFactory(IBeanFactory beanFactory)
           
 void setConverter(IUniversalConverter converter)
           
 void setProperty(Object bean, String property, Object value)
          Similar to apache commons BeanUtils, this method sets the specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanManager

public BeanManager()
Method Detail

createNewInstance

public <E> E createNewInstance(Class<E> clazz)
Description copied from interface: IBeanFactory
Create a instances of the given class.
Implementations may set default properties. Object instances returned by this method are ready to use and will be filled with values from Open-Xchange™ through the HTTP-API.

Specified by:
createNewInstance in interface IBeanFactory
Returns:
object instance

setProperty

public void setProperty(@NotNull
                        Object bean,
                        @NotNull
                        String property,
                        Object value)
Description copied from interface: IBeanHelper
Similar to apache commons BeanUtils, this method sets the specified value.
But the great difference is that nested properties are instantiated if necessary.

Specified by:
setProperty in interface IBeanHelper

setBeanFactory

public void setBeanFactory(@NotNull
                           IBeanFactory beanFactory)

setConverter

public void setConverter(@NotNull
                         IUniversalConverter converter)


Copyright © 2007. All Rights Reserved.