Example usage for org.springframework.stereotype Repository getClass

List of usage examples for org.springframework.stereotype Repository getClass

Introduction

In this page you can find the example usage for org.springframework.stereotype Repository getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.apache.archiva.repository.RepositoryRegistry.java

@SuppressWarnings("unchecked")
public void removeRepository(Repository repo) throws RepositoryException {
    if (repo instanceof RemoteRepository) {
        removeRepository((RemoteRepository) repo);
    } else if (repo instanceof ManagedRepository) {
        removeRepository((ManagedRepository) repo);
    } else {/*from  ww w. ja  va  2s .  com*/
        throw new RepositoryException("Repository type not known: " + repo.getClass());
    }
}