Package com.netflix.governator.lifecycle

Examples of com.netflix.governator.lifecycle.ResourceLocator


{
    @Test(dataProvider = "builders")
    public void basicTest(LifecycleInjectorBuilder lifecycleInjectorBuilder) throws Exception
    {
        final AtomicInteger classResourceCount = new AtomicInteger(0);
        final ResourceLocator resourceLocator = new ResourceLocator()
        {
            @Override
            public Object locate(Resource resource, ResourceLocator nextInChain) throws Exception
            {
                if ( resource.name().equals(ObjectWithResources.class.getName() + "/myResource") )
View Full Code Here


    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();
View Full Code Here

TOP

Related Classes of com.netflix.governator.lifecycle.ResourceLocator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.