ColdSpring 2.0 - Narwhal

coldspring.beans.factory.config
Class JSONFactoryBean

WEB-INF.cftags.component
        extended by coldspring.beans.factory.config.JSONFactoryBean
All Implemented Interfaces:
FactoryBean

public class JSONFactoryBean
extends WEB-INF.cftags.component

Simple factory for creating data via a JSON string, and sharing it.


Constructor Summary
init()
          Constructor
 
Method Summary
 any getObject()
          Returns the deserialised JSON
 string getObjectType()
          returns ''
private any getSourceJSON()
          The deserialised JSON
 boolean isSingleton()
          Is this data structure is singleton? Defaults to false
 void setSingleton(boolean isSingleton)
 void setSourceJSON(string sourceJSON)
          The JSON to be deserialised
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
Constructor

Method Detail

getObject

public any getObject()
Returns the deserialised JSON

Specified by:
getObject in interface FactoryBean

getObjectType

public string getObjectType()
returns ''

Specified by:
getObjectType in interface FactoryBean

getSourceJSON

private any getSourceJSON()
The deserialised JSON


isSingleton

public boolean isSingleton()
Is this data structure is singleton? Defaults to false

Specified by:
isSingleton in interface FactoryBean

setSingleton

public void setSingleton(boolean isSingleton)

Parameters:
isSingleton

setSourceJSON

public void setSourceJSON(string sourceJSON)
The JSON to be deserialised

Parameters:
sourceJSON

ColdSpring 2.0 - Narwhal