|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.utils.lang.Factory
org.backsource.utils.io.CachedStreamFactory
Factory for CachedStream implementation.
The factory follows the pattern from JXAP and Factory, which means that the factory is used to get an implementing factory: from which the CachedStream is gotten. FACTORY_PROPERTY defines the name of the property.
| Field Summary | |
static java.lang.String |
FACTORY_PROPERTY
The property name/key to use when configuring the factory: org.backsource.utils.io.CachedStreamFactory. |
| Constructor Summary | |
protected |
CachedStreamFactory()
|
| Method Summary | |
abstract CachedStream |
getCachedStream()
Get the CachedStream implementation. |
static CachedStreamFactory |
newInstance()
Get the system configured CachedStreamFactory. |
static CachedStreamFactory |
newInstance(java.lang.String clazz,
boolean reversedOrder)
Get the possibly locally configured CachedStreamFactory. |
| Methods inherited from class org.backsource.utils.lang.Factory |
findInstance, getProperty, jarService, jarService, list, newInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String FACTORY_PROPERTY
| Constructor Detail |
protected CachedStreamFactory()
| Method Detail |
public static CachedStreamFactory newInstance()
throws java.lang.ClassNotFoundException
See Factory to understand how the search order is used and how to configure a custom factory.The default is ByteCachedStream.A reverse search order is used!
java.lang.ClassNotFoundException
public static CachedStreamFactory newInstance(java.lang.String clazz,
boolean reversedOrder)
throws java.lang.ClassNotFoundException
See Factory to understand how the search order is used and how to configure a custom factory.The default is ByteCachedStream.
clazz - the full classname of the factory to use, may be null.reversedOrder - search in reverse order according to Factory.
java.lang.ClassNotFoundExceptionpublic abstract CachedStream getCachedStream()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||