Package org.spongepowered.asm.service
Interface IClassProvider
public interface IClassProvider
Interface for marshal object which can retrieve classes from the environment
-
Method Summary
Modifier and TypeMethodDescriptionClass<?> findAgentClass(String name, boolean initialize) Marshal a call to Class.forName for an agent classClass<?> Find a class in the service classloaderClass<?> Marshal a call to Class.forName for a regular classURL[]Deprecated.As of 0.8, use of this method is not a sensible way to access available containers.
-
Method Details
-
getClassPath
Deprecated.As of 0.8, use of this method is not a sensible way to access available containers.Get the current classpath from the service classloader -
findClass
Find a class in the service classloader- Parameters:
name- class name- Returns:
- resultant class
- Throws:
ClassNotFoundException- if the class was not found
-
findClass
Marshal a call to Class.forName for a regular class- Parameters:
name- class nameinitialize- init flag- Returns:
- Klass
- Throws:
ClassNotFoundException
-
findAgentClass
Marshal a call to Class.forName for an agent class- Parameters:
name- agent class nameinitialize- init flag- Returns:
- Klass
- Throws:
ClassNotFoundException
-