777879808182838485
protected Presentity newResource(String uri) { Presentity presentity = new Presentity(uri); presentity.addListener(getEventNotifier()); Policy policy = _policyManager.getPolicy(presentity); policy.addListener(_policyListener); return presentity; }
8687888990919293
@Override protected void removeResource(Presentity presentity) { super.removeResource(presentity); Policy policy = _policyManager.getPolicy(presentity); policy.removeListener(_policyListener); }