@Retention(value=RUNTIME) public @interface OnCreateService
The method will take as parameters any needed @Prop
and will have as
return type the Service it will create.
It will be possible to access the service from other callbacks using: SomeService
someService
.
For example:
@OnCreateService protected SomeService onCreateService( SectionContext c, @Prop SomeProp prop) { return new SomeService(c, prop); } }