Package org.apache.hivemind

Examples of org.apache.hivemind.Location


    }

    private IBinding convert(IComponent container, String description, String defaultBindingType,
            IBindingSpecification spec)
    {
        Location location = spec.getLocation();
        String bindingReference = spec.getValue();

        return _bindingSource.createBinding(
                container,
                description,
View Full Code Here


                // container's specification.

                IContainedComponent contained = containerSpec.getComponent(id);

                String type = contained.getType();
                Location location = contained.getLocation();

                _componentResolver.resolve(cycle, namespace, type, location);

                IComponentSpecification componentSpecification = _componentResolver
                        .getSpecification();
View Full Code Here

     * @see ChangeObserver
     */

    private IPage instantiatePage(String name, INamespace namespace, IComponentSpecification spec)
    {
        Location location = spec.getLocation();
        ComponentClassProviderContext context = new ComponentClassProviderContext(name, spec,
                namespace);
        String className = _pageClassProvider.provideComponentClassName(context);

        Class pageClass = _classResolver.findClass(className);
View Full Code Here

    private IAsset convertAsset(IAssetSpecification spec)
    {
        // AssetType type = spec.getType();
        String path = spec.getPath();
        Location location = spec.getLocation();

        Resource specResource = location.getResource();

        // And ugly, ugly kludge. For page and component specifications in the
        // context (typically, somewhere under WEB-INF), we evaluate them
        // relative the web application root.
View Full Code Here

            Class targetType = PropertyUtils.getPropertyType(target, propertyName);

            Object value = facet.getFacetValue(serviceId, invokingModule, targetType);

            Location location = HiveMind.getLocation(facet);

            HiveMind.setLocation(value, location);

            try
            {
View Full Code Here

                {
                    _filter = parseMethodPattern(_methodPattern);
                }
                catch (RuntimeException ex)
                {
                    Location l = HiveMind.findLocation(new Object[] { _patternValue, ex });

                    if (l == null)
                        throw ex;

                    throw new ApplicationRuntimeException(
View Full Code Here

        while (i.hasNext())
        {
            TranslatorContribution c = (TranslatorContribution) i.next();

            String name = c.getName();
            Location oldLocation = (Location) locations.get(name);

            if (oldLocation != null)
            {
                _errorHandler.error(
                    LOG,
View Full Code Here

    public void performEnhancement(EnhancementOperation op,
            InjectSpecification is)
    {
        String name = is.getProperty();
        String objectReference = is.getObject();
        Location location = is.getLocation();

        injectObject(op, objectReference, name, location);
    }
View Full Code Here

        int length = _templateData.length;
        String tagName = null;
        boolean endOfTag = false;
        boolean emptyTag = false;
        int startLine = _line;
        Location startLocation = new LocationImpl(_resourceLocation, startLine);

        tagBeginEvent(startLine, _cursor);

        advance();
View Full Code Here

    {
        int cursorStart = _cursor;
        int length = _templateData.length;
        int startLine = _line;

        Location startLocation = getCurrentLocation();

        _cursor += CLOSE_TAG.length;

        int tagStart = _cursor;
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.