@SuppressWarnings("unchecked") PhaseMutation(final StatementContextBase<?, ?, ?> context, final ModelProcessingPhase phase) { context.addMutation(phase, this); resolvePrereq((C) context); }
@SuppressWarnings("unchecked") @Override public void namespaceItemAdded(final StatementContextBase<?, ?, ?> context, final Class<?> namespace, final Object key, final Object value) { StatementContextBase<?, ?, ?> targetCtx = contextImpl(value); targetCtx.addMutation(modPhase, this); resolvePrereq((C) targetCtx); }
@Override public void namespaceItemAdded(final StatementContextBase<?, ?, ?> context, final Class<?> namespace, final Object key, final Object value) { LOG.debug("Action for {} got key {}", keys, key); final StatementContextBase<?, ?, ?> target = contextImpl(value); if (!it.hasNext()) { target.addMutation(modPhase, this); resolvePrereq((C) value); return; } hookOnto(target, namespace, it.next()); }