Package org.glassfish.api.deployment
Class MetaData
java.lang.Object
org.glassfish.api.deployment.MetaData
MetaData associated with a Deployer. This is used by the deployment layers to identify the special requirements of
the Deployer.
Supported Requirements : invalidatesClassLoader Deployer can load classes that need to be reloaded for the
application to run successfully hence requiring the class loader to be flushed and reinitialized between the prepare
and load phase. componentAPIs Components can use APIs that are defined outside of the component's bundle. These
component's APIs (eg. Jakarta EE APIs) must be imported by the application class loader before any application code is
loaded.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether or not the class loader is invalidated by the Deployer's propare phase.Class<?>[]
provides()
Returns the list of types of metadata this deployer will provide to the deployement context upon the successful completion of the prepare method.Class<?>[]
requires()
Returns the list of types of metadata this deployer will require to run successfully the prepare method.
-
Constructor Details
-
MetaData
Constructor for the Deployer's metadata- Parameters:
invalidatesClassLoader
- If true, invalidates the class loader used during the deployment's prepare phase
-
-
Method Details
-
invalidatesClassLoader
public boolean invalidatesClassLoader()Returns whether or not the class loader is invalidated by the Deployer's propare phase.- Returns:
- true if the class loader is invalid after the Deployer's prepare phase call.
-
provides
Returns the list of types of metadata this deployer will provide to the deployement context upon the successful completion of the prepare method.- Returns:
- list of metadata type;
-
requires
Returns the list of types of metadata this deployer will require to run successfully the prepare method.- Returns:
- list of metadata required type;
-