17 |
require 'rexml/document' |
require 'rexml/document' |
18 |
|
|
19 |
module FreeBASE |
module FreeBASE |
20 |
|
|
21 |
|
module StandardPlugin |
22 |
|
def load(plugin) |
23 |
|
plugin.transition(FreeBASE::LOADED) |
24 |
|
end |
25 |
|
|
26 |
|
def start(plugin) |
27 |
|
plugin.transition(FreeBASE::RUNNING) |
28 |
|
end |
29 |
|
|
30 |
|
def stop(plugin) |
31 |
|
plugin.transition(FreeBASE::LOADED) |
32 |
|
end |
33 |
|
|
34 |
|
def unload(plugin) |
35 |
|
plugin.transition(FreeBASE::UNLOADED) |
36 |
|
end |
37 |
|
end |
38 |
|
|
39 |
## |
## |
40 |
# The Plugin class is the wrapper for the actual plugin instance |
# The Plugin class is the wrapper for the actual plugin instance |
41 |
# |
# |