|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceProvider
A basic lifecycle interface that all Service Provider implementation have to implement. Any class that implements this interface will become available for loading through the ServiceLoader class. Classes implementing this interface must provide a no argument constructor. Any intialization that is needed should be done in the intialize() method. The system will pass all configuration data that is associated with the service when calling the initialize method.
| Method Summary | |
|---|---|
void |
destroy()
This method is called to allow services to shutdown/close any open resources and perform any clean up that is needed. |
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationMap()
This method is must return all of the configuration keys that need to be set before calling initialize method. |
void |
initialize(java.util.Map<java.lang.String,java.lang.String> context)
Initialization of the service should be performed in this method. |
| Method Detail |
|---|
java.util.Map<java.lang.String,java.lang.String> getConfigurationMap()
void initialize(java.util.Map<java.lang.String,java.lang.String> context)
context - Configuration data that is associated with this service.void destroy()
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||