« Return to Thread: Getting InstanceContent from Lookup

Getting InstanceContent from Lookup

by Klaus Martinschitz :: Rate this Message:

Reply to Author | View in Thread

Hi!

Does anyone know if something like this is possible?

InstanceContent instanceContent=new InstanceContent();
AbstractLookup abstractLookup=new AbstractLookup(instanceContent);

...
myObject.getLookup().lookup(InstanceContent.class).add(myAddedObject);
....


It does not work in this way becaus AbstractLookup doesn't save the
instance content object in its lookup. I just want to understand how to
add objects to lookups dynamically..

Thanks,
BYe,
Klaus

 « Return to Thread: Getting InstanceContent from Lookup