public AdapterType getAdapter()

in src/main/java/org/apache/sling/validation/impl/ResourceToValidationResultAdapterFactory.java [37:50]


    public <AdapterType> AdapterType getAdapter(Object adaptable, Class<AdapterType> type) {
        AdapterType adapter = null;
        if (adaptable instanceof Resource) {
            final Resource resource = (Resource) adaptable;
            if (type == ValidationResult.class) {
                return (AdapterType)getValidationResultFromCache(resource);
            } else {
                LOG.warn("Cannot handle adapter {}", type.getName());
            }
        } else {
            LOG.warn("Cannot handle adaptable {}", adaptable.getClass().getName());
        }
        return adapter;
    }