Hi,
I have following class :
@Singleton
public class PoiLoader implements Serializable, IPoiLoader {
private Multimap<TouristType, Poi>
poisRelatedToSpecificTouristType = ArrayListMultimap.create();
@Inject
private CatadvisorProperties properties;
@Dependency
private OntologyHelper ontHelper;
@Dependency
private WorkManager workManager;
@Dependency
private ITouristTypeVectorDao daoTouristTypeVector;
private Map<Resource, Poi> pois = Maps.newHashMap();
private final List<String> allConcepts = Lists.newArrayList();
@Deprecated
protected PoiLoader() {
}
@Override
public void initialize() {
// this.workManager = wrapper.wrap(workManager);
workManager.beginWork();
etc.....
I recognized that if I change an @inject to an @dependency annotation,
I am getting the error "context [] startup failed due to previous
errors because of a NPE of workManager. If I run it a 2nd time, it
works. Does someone know the reason for that behavior?
Thanks, Christoph
--
You received this message because you are subscribed to the Google Groups "Salve" group.
To post to this group, send email to
salve...@googlegroups.com.
To unsubscribe from this group, send email to
salve-disc+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/salve-disc?hl=en.