if (startMethods != null && !startMethods.isEmpty()) {
this.startMethods = new PrioritizedMethodMetadata[startMethods.size()];
int i=0;
for (Method m : startMethods) {
Start s = m.getAnnotation(Start.class);
this.startMethods[i++] = new PrioritizedMethodMetadata(m.getName(), s.priority());
}
}
if (stopMethods != null && !stopMethods.isEmpty()) {
this.stopMethods = new PrioritizedMethodMetadata[stopMethods.size()];
int i=0;
for (Method m : stopMethods) {
Stop s = m.getAnnotation(Stop.class);
this.stopMethods[i++] = new PrioritizedMethodMetadata(m.getName(), s.priority());
}
}
if (injectMethods != null && !injectMethods.isEmpty()) {
this.injectMetadata = new InjectMetadata[injectMethods.size()];