Module org.spongepowered.plugin.spi
Package org.spongepowered.plugin.builtin
Class StandardPluginContainer
java.lang.Object
org.spongepowered.plugin.builtin.StandardPluginContainer
- All Implemented Interfaces:
PluginContainer,ResourceQueryable
-
Constructor Summary
ConstructorsConstructorDescriptionStandardPluginContainer(PluginCandidate candidate) StandardPluginContainer(PluginCandidate candidate, Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected voidinitializeInstance(Object instance) final Objectinstance()locateResource(String path) Resolves the location of a bundled resource, given a relative path.final Loggerlogger()final PluginMetadatametadata()final StringtoString()protected StringJoinerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.spongepowered.plugin.ResourceQueryable
openResource
-
Constructor Details
-
StandardPluginContainer
-
StandardPluginContainer
-
-
Method Details
-
metadata
- Specified by:
metadatain interfacePluginContainer- Returns:
- The
plugin metadata
-
logger
- Specified by:
loggerin interfacePluginContainer- Returns:
- The
Logger(typically mapped toPluginMetadata.id())
-
instance
- Specified by:
instancein interfacePluginContainer- Returns:
- The instance
-
initializeInstance
-
locateResource
Description copied from interface:ResourceQueryableResolves the location of a bundled resource, given a relative path.- Specified by:
locateResourcein interfaceResourceQueryable- Parameters:
path- The relative path- Returns:
- The resolved resource location, if available
-
hashCode
public int hashCode() -
equals
-
toStringJoiner
-
toString
-