|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.util.AbstractSingletonFactory<Input,Output>
Input - the factory input class typeOutput - the factory output class typepublic abstract class AbstractSingletonFactory<Input,Output>
An abstract Template design pattern implementation of SingletonFactory.
| Constructor Summary | |
|---|---|
AbstractSingletonFactory()
|
|
| Method Summary | |
|---|---|
protected abstract Output |
createNewInstance(Input input)
Create a new instance of the output class based on the input class instance. |
protected abstract Output |
get(Input input)
Get the output instance currently associated with the input instance. |
Output |
getInstance(Input input)
Obtain an instance of the output class based on an input class instance. |
protected abstract void |
put(Input input,
Output output)
Store the input and output instance association. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSingletonFactory()
| Method Detail |
|---|
public Output getInstance(Input input)
getInstance in interface SingletonFactory<Input,Output>input - the input class instance
protected abstract Output get(Input input)
input - the input instance key
protected abstract void put(Input input,
Output output)
input - the input instance keyoutput - the output instance valueprotected abstract Output createNewInstance(Input input)
input - the input class instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||