|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.taverna.t2.util.beanable.BeanableFactory<BeanableType,BeanType>
BeanableType - The Beanable typeBeanType - The bean type of the Beanable.public abstract class BeanableFactory<BeanableType extends Beanable<BeanType>,BeanType>
A factory for reconstructing a Beanable given a bean previously
serialised from Beanable.getAsBean().
Each Beanable subclass should be matched with a subclass of
BeanableFactory for producing the beanable from the bean.
This abstract class is an SPI, and it's concrete instances can be found by
accessing BeanableFactoryRegistry. Implementations must be listed in
META-INF/services/net.sf.taverna.t2.cloudone.bean.BeanableFactory to be found
by the registry.
| Method Summary | |
|---|---|
BeanableType |
createFromBean(BeanType bean)
Construct a Beanable (an instance of the class returned from getBeanableType()) loaded from the given bean. |
java.lang.Class<BeanableType> |
getBeanableType()
Get this factory's Beanable type. |
java.lang.Class<BeanType> |
getBeanType()
Get this factory's bean type. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public BeanableType createFromBean(BeanType bean)
getBeanableType()) loaded from the given bean.
bean - Bean containing the data to reconstruct the Beanable. The bean
must be an instance of the class of getBeanType().
public java.lang.Class<BeanableType> getBeanableType()
Beanable type. Instances of this class can be
created using createFromBean(Object).
Beanable Class this factory producespublic java.lang.Class<BeanType> getBeanType()
createFromBean(Object).
Class of the bean consumed by
createFromBean(Object)public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||