ObjectCreator singleton = new ObjectCreator()
{
public Object createObject() throws Throwable
{
BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder("test", Tester.class.getName());
Tester tester = (Tester)instantiate(builder.getBeanMetaData());
return tester.getValue();
}
};
result.add(singleton);
return result;
}