Package org.codehaus.dna

Examples of org.codehaus.dna.ResourceLocator


        if( null != resource )
        {
            return resource;
        }

        final ResourceLocator parent = getParent();
        if( null != parent )
        {
            return parent.lookup( key );
        }
        else
        {
            final String message = "Unable to locate resource " + key + ".";
            throw new MissingResourceException( message, key );
View Full Code Here


        if( null != resource )
        {
            return true;
        }

        final ResourceLocator parent = getParent();
        if( null != parent )
        {
            return parent.contains( key );
        }
        else
        {
            return false;
        }
View Full Code Here

    public void testComposeOnComponentImplementingStage()
        throws Exception
    {
        final MockComponent object = new MockComponent();
        final ResourceLocator resource = new DefaultResourceLocator();

        ContainerUtil.compose( object, resource );

        assertEquals( resource, object.getServices() );
    }
View Full Code Here

    public void testComposeOnComponentImplementingStageButNullLogger()
        throws Exception
    {
        final MockComponent object = new MockComponent();
        final ResourceLocator resource = null;

        try
        {
            ContainerUtil.compose( object, resource );
        }
View Full Code Here

TOP

Related Classes of org.codehaus.dna.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.