|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.persistence.driver.PersistentAccess
This class provides a static method to access the client and server persistent factories.It reads in the file "WSRPServices.properties" for the server and the file "SwingConsumer.properties" for a client.
| Field Summary | |
private static java.lang.String |
CLIENT
|
private static java.lang.String |
CLIENT_PERSISTENT_FACTORY
|
private static ClientPersistentFactory |
clientPersistentFactory
|
private static Logger |
logger
|
private static java.util.Properties |
pFactories
|
private static java.lang.String |
SERVER_PERSISTENT_FACTORY
|
private static ServerPersistentFactory |
serverPersistentFactory
|
private static java.lang.String |
WSRP_SERVICES
|
| Constructor Summary | |
PersistentAccess()
|
|
| Method Summary | |
static ClientPersistentFactory |
getClientPersistentFactory()
Fetches a client factory-instance. |
private static java.lang.Object |
getFactory(java.lang.String type,
java.lang.String propertyFile)
Returns the factory loaded from the properties file. |
static ServerPersistentFactory |
getServerPersistentFactory()
Fetches a server factory-instance. |
private static java.lang.Class |
getThisClass()
Returns the class object of PersistentrAccess |
private static void |
loadPropertyFile(java.lang.String propertyFile)
Loads the content of a properties file into a private Properties object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.lang.String WSRP_SERVICES
private static java.lang.String CLIENT
private static java.lang.String SERVER_PERSISTENT_FACTORY
private static java.lang.String CLIENT_PERSISTENT_FACTORY
private static java.util.Properties pFactories
private static ServerPersistentFactory serverPersistentFactory
private static ClientPersistentFactory clientPersistentFactory
private static Logger logger
| Constructor Detail |
public PersistentAccess()
| Method Detail |
public static ServerPersistentFactory getServerPersistentFactory()
throws WSRPException
WSRPException
public static ClientPersistentFactory getClientPersistentFactory()
throws WSRPException
WSRPException
private static java.lang.Object getFactory(java.lang.String type,
java.lang.String propertyFile)
throws WSRPException
type - of the factory as string valuepropertyFile - name of the property file as string value
WSRPException
private static void loadPropertyFile(java.lang.String propertyFile)
throws WSRPException
propertyFile - name of the property file as string value
WSRPExceptionprivate static java.lang.Class getThisClass()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||