All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.restup.path.EmbeddedResourcePathValue Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.github.restup.path;

import com.github.restup.registry.Resource;

public class EmbeddedResourcePathValue implements PathValue {

    private final Resource resource;
    private final String path;

    public EmbeddedResourcePathValue(Resource resource, String path) {
        super();
        this.resource = resource;
        this.path = path;
    }

    @Override
    public String getApiPath() {
        return path;
    }

    @Override
    public String getBeanPath() {
        return null;
    }

    @Override
    public String getPersistedPath() {
        return null;
    }

    @Override
    public boolean supportsType(Class instance) {
        return instance == resource.getType();
    }

    public Resource getResource() {
        return resource;
    }

    public String getPath() {
        return path;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy