|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.spif.example.ExampleService
A service is the access point to a component package. By using making the service a pluggable singleton, service functionality can be overridden for different run-time contextes without affecting client code. See The Service Pattern.
Constructor Summary | |
ExampleService()
Use get() instead to get the instance to use.
|
Method Summary | |
static ExampleService |
get()
Returns this service |
void |
initialize(java.lang.String datasource)
Initializes this service. |
static void |
set(ExampleService service)
Sets the service instance to use (usually a subclass) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExampleService()
get()
instead to get the instance to use.
Use this only to create an instance for all to use.
Method Detail |
public static ExampleService get()
public static void set(ExampleService service)
public void initialize(java.lang.String datasource)
datasource
- any initializing context information may be given here,
here, a datasource or null to run non-persistent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |