-
Notifications
You must be signed in to change notification settings - Fork 5
Dependencies
Pierre T. edited this page Jan 13, 2015
·
1 revision
It is possible to declare dependencies between plugins. This can be useful when you need a plugin initialized or started before another. For instance, if a plugin needs to access the application configuration, you may want it to start after a "ConfigurationPlugin".
The plugin interface provides two ways to declare dependencies. Given two plugins "A" and "B", "B" dependent on "A". The dependency declaration could done in "A" or in "B".
Use the following method to declare the plugins which are dependent of a plugin "A".
@Override
public Collection<Class<? extends Plugin>> dependentPlugins() {
Collection<Class<? extends Plugin>> plugins = new ArrayList<Class<? extends Plugin>>();
plugins.add(B.class);
...
return plugins;
}
- Introduction
- ... Motivation
- ... Features
- ... Manifesto
- User manual
- ... Kernel
- ...... Kernel Life Cycle
- ...... Kernel Configuration
- ... Plugin
- ...... Plugin Life cycle
- ...... Request API
- ...... Native Module
- ...... Dependencies
- ... Tests
- ...... Integration Tests
- Advanced topics
- ... Design Best Practices
- ... Multi-Round Plugin
- ... Kernel param aliases
- ... SPI
- ...... DI Provider
- ...... Concern
- ...... Extension
- Definitions
- ... Framework
- ... Entreprise Stack
- ... API
- ... SPI
- ... Library
- ... Inversion of Control
- ... Dependency Injection
- Concepts
- ... UnitModule
- ... GlobalModule
- ... ObjectGraph