|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.oauth.ClientStoreFactory
public abstract class ClientStoreFactory
Factory for ClientStore. The Default is to create a memory based client store This class uses reflection and even an non empty constructor is possible. By default it will instantiate a memory backed client store with empty constructor. Example :
{ @code Object[] params = { "http://www.restlet.org" }; ClientStoreFactory.setClientStoreImpl(MyClientStore.class, params); ClientStore clientStore = ClientStoreFactory.getInstance(); }In the example the class MyClientStore would have a public constructor that accepts a String parameter.
Method Summary | |
---|---|
static ClientStore<?> |
getInstance()
Creates an instance of ClientStore. |
static void |
setClientStoreImpl(Class<? extends ClientStore<?>> impl)
This method sets up if the implementing class uses a no-arg public constructor |
static void |
setClientStoreImpl(Class<? extends ClientStore<?>> impl,
Object... constructorParams)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ClientStore<?> getInstance()
public static void setClientStoreImpl(Class<? extends ClientStore<?>> impl)
impl
- class reference of a class implementing ClientStorepublic static void setClientStoreImpl(Class<? extends ClientStore<?>> impl, Object... constructorParams)
impl
- class reference of a class implementing ClientStoreconstructorParams
- array of constructor arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |