Package org.apache.hivemind

Examples of org.apache.hivemind.Location


        if (_log.isDebugEnabled())
        {
            _log.debug("Method " + method.getName() + "classified as service point.");
        }
       
        Location location = new AnnotatedModuleLocation(module.getLocation().getResource(),
                method.getDeclaringClass(), method);

        Visibility visibility = Visibility.PUBLIC;
        if (Modifier.isProtected(method.getModifiers())) {
            visibility = Visibility.PRIVATE;
View Full Code Here


        if (_log.isDebugEnabled())
        {
            _log.debug("Method " + method.getName() + "classified as configuration point.");
        }
       
        Location location = new AnnotatedModuleLocation(module.getLocation().getResource(),
                method.getDeclaringClass(), method);
       
        Visibility visibility = Visibility.PUBLIC;
        if (Modifier.isProtected(method.getModifiers())) {
            visibility = Visibility.PRIVATE;
View Full Code Here

        if (_log.isDebugEnabled())
        {
            _log.debug("Method " + method.getName() + "classified as contribution.");
        }
       
        Location location = new AnnotatedModuleLocation(module.getLocation().getResource(),
                method.getDeclaringClass(), method);
       
        Contribution constructor = new MethodCallContributionConstructor(
                location, method, instanceProvider);
View Full Code Here

    }

    public void testMissingSymbol()
    {
        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);
        Location l = newLocation();

        MockControl control = newControl(SymbolSource.class);
        SymbolSource source = (SymbolSource) control.getMock();

        // Training
View Full Code Here

        return element;
    }

    public void testCreateWithInitializer()
    {
        final Location l = newLocation();
        Module module = newModule("Bean", Bean.class);
        Element element = newElement(l);

        MockControl control = newControl(SchemaProcessor.class);
        SchemaProcessor processor = (SchemaProcessor) control.getMock();
View Full Code Here

        assertSame(e, c.getLastEvent());
    }

    public void testNoMatch() throws Exception
    {
        Location location = newLocation();
        EventProducer p = new EventProducer();
        Object c = "NeverwinterNights";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here

        verifyControls();
    }

    public void testNoMatchingName() throws Exception
    {
        Location location = newLocation();
        EventProducer p = new EventProducer();
        Object c = "SoulCailiburII";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here

        verifyControls();
    }

    public void testIncompatible() throws Exception
    {
        Location location = newLocation();
        EventProducer p = new EventProducer();
        Object c = "SplinterCell";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here

        verifyControls();
    }

    public void testNoProducer() throws Exception
    {
        Location location = newLocation();
        Object p = "DanceDanceRevolution";
        Object c = "SplinterCell";

        ErrorLog el = (ErrorLog) newMock(ErrorLog.class);
View Full Code Here

    }

    public void testParseExceptionWithLocation() throws Exception
    {
        Resource r = getResource("MethodSubject.class");
        Location l = new LocationImpl(r, 3);

        MethodSubject s = new MethodSubject();
        s.setLocation(l);

        _m.put("*(", s);
View Full Code Here

TOP

Related Classes of org.apache.hivemind.Location

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.