|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.server.protocol.ProtocolFactory
public abstract class ProtocolFactory
The ProtocolFactory is responsible for an IProtocolWriter. It defines the
creation of the writer instance, via createWriter().
The factory itself doesn't create a writer, because it's abstract and delegates the creation to
a concrete implementation, because creating protocols may depend on OS or runtime environment.
| Constructor Summary | |
|---|---|
protected |
ProtocolFactory()
Invisible constructor, because the ProtocolFactory is a utility class. |
| Method Summary | |
|---|---|
abstract IProtocolWriter |
createWriter()
Creates a new instance of IProtocolWriter. |
static ProtocolFactory |
getInstance()
Gets the current factory instance. |
static IProtocolWriter |
getWriter()
Construct (if necessary) and return an IProtocolWriter instance, using the factory's
current set of configuration attributes. |
static void |
init(java.lang.String pClassName)
Creates and sets a new instance of ProtocolFactory. |
static Record |
openRecord(java.lang.String pCommand,
java.lang.Object... pParameter)
Opens a protocol record via getWriter(). |
static Record |
openRecord(java.lang.String pCategory,
java.lang.String pCommand,
java.lang.Object... pParameter)
Opens a protocol record via getWriter(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ProtocolFactory()
ProtocolFactory is a utility class.
| Method Detail |
|---|
public abstract IProtocolWriter createWriter()
IProtocolWriter.
public static void init(java.lang.String pClassName)
ProtocolFactory. If the pClassName was not
found then the factory won't be initialized.
pClassName - the protocol factory implementationpublic static ProtocolFactory getInstance()
null if no instance was initializedinit(String)public static IProtocolWriter getWriter()
IProtocolWriter instance, using the factory's
current set of configuration attributes.
null if factory was not initializedinit(String)
public static Record openRecord(java.lang.String pCommand,
java.lang.Object... pParameter)
getWriter().
pCommand - the commandpParameter - additional parameter
public static Record openRecord(java.lang.String pCategory,
java.lang.String pCommand,
java.lang.Object... pParameter)
getWriter().
pCategory - the protocol categorypCommand - the commandpParameter - additional parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||