net.sourceforge.esw.properties.factory
Interface IPropertyFactory

All Known Implementing Classes:
DefaultPropertyFactory

public interface IPropertyFactory

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 );
 


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.
 

Method Detail

createPropertyAggregator

public IPropertyAggregator createPropertyAggregator()
Returns a new IPropertyAggregator instance.

createPropertySource

public IPropertySource createPropertySource(ITransducer aTransducer)
Returns a new IPropertySource instance with the specified ITransducer instance.
Parameters:
aTransducer - the ITransducer instance for the created IPropertySource instance.

createPropertySource

public IPropertySource createPropertySource(ITransducer aTransducer,
                                            boolean bWriteable)
Returns a new IPropertySource instance with the specified ITransducer instance.
Parameters:
aTransducer - 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.


Copyright 2002 Free Software Foundation. All Rights Reserved.