mpc.registerComponentImplementation("Tom", Cod.class);
mpc.registerComponentImplementation("Dick", Cod.class);
mpc.registerComponentImplementation("Harry", Cod.class);
mpc.registerComponentImplementation("Sharky", Shark.class);
mpc.registerComponentImplementation(Bowl.class, Bowl.class, new Parameter[]{
new CollectionComponentParameter(Fish.class, false),
new CollectionComponentParameter(Cod.class, false) {
protected boolean evaluate(ComponentAdapter adapter) {
return !"Tom".equals(adapter.getComponentKey());
}
}
});