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
ConstructorDescriptionStandardPluginContainer
(PluginCandidate candidate) StandardPluginContainer
(PluginCandidate candidate, Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
protected void
initializeInstance
(Object instance) final Object
instance()
locateResource
(String path) Resolves the location of a bundled resource, given a relative path.final Logger
logger()
final PluginMetadata
metadata()
final String
toString()
protected StringJoiner
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.spongepowered.plugin.ResourceQueryable
openResource
-
Constructor Details
-
StandardPluginContainer
-
StandardPluginContainer
-
-
Method Details
-
metadata
- Specified by:
metadata
in interfacePluginContainer
- Returns:
- The
plugin metadata
-
logger
- Specified by:
logger
in interfacePluginContainer
- Returns:
- The
Logger
(typically mapped toPluginMetadata.id()
)
-
instance
- Specified by:
instance
in interfacePluginContainer
- Returns:
- The instance
-
initializeInstance
-
locateResource
Description copied from interface:ResourceQueryable
Resolves the location of a bundled resource, given a relative path.- Specified by:
locateResource
in interfaceResourceQueryable
- Parameters:
path
- The relative path- Returns:
- The resolved resource location, if available
-
hashCode
public int hashCode() -
equals
-
toStringJoiner
-
toString
-