Top Description Fields Constructors Methods
org.apache.bcel.util

public Class SyntheticRepository

extends MemorySensitiveClassPathRepository
Class Inheritance
Imports
java.util.Map, java.util.concurrent.ConcurrentHashMap

This repository is used in situations where a Class is created outside the realm of a ClassLoader. Classes are loaded from the file systems using the paths specified in the given class path. By default, this is the value returned by ClassPath.getClassPath().

This repository uses a factory design, allowing it to maintain a collection of different classpaths, and as such It is designed to be used as a singleton per classpath.

See Also
org.apache.bcel.Repository

Field Summary

Modifier and TypeField and Description
private static final Map<ClassPath, SyntheticRepository>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SyntheticRepository
public static SyntheticRepository
getInstance(final ClassPath classPath)

Inherited from org.apache.bcel.util.MemorySensitiveClassPathRepository:
clearfindClassremoveClassstoreClass

Field Detail

MAPback to summary
private static final Map<ClassPath, SyntheticRepository> MAP

Constructor Detail

SyntheticRepositoryback to summary
private SyntheticRepository(final ClassPath path)

Method Detail

getInstanceback to summary
public static SyntheticRepository getInstance()
getInstanceback to summary
public static SyntheticRepository getInstance(final ClassPath classPath)