|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.esw.properties.DefaultPropertyFactory
Defines the methods for creation of IPropertySource and/or
IPropertyAggregator instances.
This is the Abstract Factory of the Abstract Factory design
pattern.
"Pluggable factories" allow the application to add its own custom
implementations of the IPropertySource and/or
IPropertyAggregator interfaces to the framework in a
consitent, simple way. Custom implementations of the
IPropertySource and/or IPropertyAggregator
interfaces can thus be used as if they were a standard part of the framework.
Examples:
MyCustomPropertyFactory customFactory = new MyCustomPropertyFactory(); PropertyFactory.setPropertyFactory( customFactory );
| Constructor Summary | |
DefaultPropertyFactory()
|
|
| Method Summary | |
IPropertyAggregator |
createPropertyAggregator()
Returns a new IPropertyAggregator instance. |
IPropertySource |
createPropertySource(ITransducer aTransducer)
Returns a new IPropertySource instance with the specified
ITransducer instance. |
IPropertySource |
createPropertySource(ITransducer aTransducer,
boolean bWriteable)
Returns a new IPropertySource instance with the specified
ITransducer instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultPropertyFactory()
| Method Detail |
public IPropertyAggregator createPropertyAggregator()
IPropertyAggregator instance.createPropertyAggregator in interface IPropertyFactorypublic IPropertySource createPropertySource(ITransducer aTransducer)
IPropertySource instance with the specified
ITransducer instance.createPropertySource in interface IPropertyFactoryaTransducer - the ITransducer instance for the created
IPropertySource instance.
public IPropertySource createPropertySource(ITransducer aTransducer,
boolean bWriteable)
IPropertySource instance with the specified
ITransducer instance.createPropertySource in interface IPropertyFactoryaTransducer - the ITransducer instance for the created
IPropertySource instance.aWriteable - if true, the IPropertySource
instance will be created as being writable, otherwise,
the IPropertySource instance will be
read-only.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||