|
PTLog API - 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.ne.dti.lares.foozy.ptlog.writer.PropertiesProviderConfig
Configuration utility to configure all together.
This is provided for convenience to
configure WriterProvider by
PropertiesConverterConfig,
PropertiesFilterConfig and
PropertiesFormatterConfig all together.
| Field Summary | |
static PropertiesProviderConfig |
ALLOW_FAILURE
Convenience to use this class without construction. |
static PropertiesProviderConfig |
DISALLOW_FAILURE
Convenience to use this class without construction. |
| Constructor Summary | |
PropertiesProviderConfig()
Constructor. |
|
PropertiesProviderConfig(boolean allowFailure)
Constructor. |
|
| Method Summary | |
void |
config(WriterProvider provider,
java.io.InputStream stream)
Configure WriterProvider
by properties from specified stream.
|
void |
config(WriterProvider provider,
java.util.Properties properties)
Configure WriterProvider by specified properties. |
void |
config(WriterProvider provider,
java.lang.String filename)
Configure WriterProvider
by properties from specified file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final PropertiesProviderConfig ALLOW_FAILURE
This allows failure in configuration process.
public static final PropertiesProviderConfig DISALLOW_FAILURE
This does not allow failure in configuration process.
| Constructor Detail |
public PropertiesProviderConfig(boolean allowFailure)
For resource efficiency,
please use ALLOW_FAILURE or DISALLOW_FAILURE
instead of NEW-ing,
except of invocation from derived classes.
allowFailure - whether failure in configuration process or not.public PropertiesProviderConfig()
This is equivalent to PropertiesProviderConfig(false).
| Method Detail |
public final void config(WriterProvider provider,
java.util.Properties properties)
WriterProvider by specified properties.
properties - containing provider configurationprovider - to be configured
public final void config(WriterProvider provider,
java.io.InputStream stream)
throws java.io.IOException
WriterProvider
by properties from specified stream.
ATTENTION:Stream closing is not responsibility of this class but of caller side.
provider - to be configuredstream - to load data into properties.
java.io.IOException
public final void config(WriterProvider provider,
java.lang.String filename)
throws java.io.IOException
WriterProvider
by properties from specified file.
provider - to be configuredfilename - to load data into properties.
java.io.IOException
|
PTLog API - 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||