public void testChained(LifecycleInjectorBuilder lifecycleInjectorBuilder) throws Exception
{
final AtomicInteger resourceLocator1Count = new AtomicInteger(0);
final AtomicInteger resourceLocator2Count = new AtomicInteger(0);
final ResourceLocator resourceLocator1 = new ResourceLocator()
{
@Override
public Object locate(Resource resource, ResourceLocator nextInChain) throws Exception
{
resourceLocator1Count.incrementAndGet();
return nextInChain.locate(resource, nextInChain);
}
};
final ResourceLocator resourceLocator2 = new ResourceLocator()
{
@Override
public Object locate(Resource resource, ResourceLocator nextInChain) throws Exception
{
resourceLocator2Count.incrementAndGet();