java.lang.Object
com.sun.enterprise.module.single.ProxyModuleDefinition
- All Implemented Interfaces:
ModuleDefinition
Creates a ModuleDefinition backed up by a a single classloader.
The implementation does not cache any data - everything is recalculated
for each call. Callers are therefore encouraged to either supply their
own caching, or minimize the calls to methods of this class.
- Author:
- Jerome Dochez
-
Constructor Summary
ConstructorsConstructorDescriptionProxyModuleDefinition(ClassLoader classLoader) ProxyModuleDefinition(ClassLoader classLoader, List<ManifestProxy.SeparatorMappings> mappings) -
Method Summary
Modifier and TypeMethodDescriptionprotected Manifestgenerate(ModuleMetadata metadata) Returns the list of this module's dependencies.Returns the import policy class name.Returns the lifecycle policy class name.URI[]A Module is implemented by one to many jar files.Returns the manifest file for the main module jar fileGets the metadata that describes various components and services in this module.getName()Returns the module name, usually this is the same name as the jar file name containing the module's implementation.String[]Returns a list of public interfaces for this module.Returns the version of this module's implementation
-
Constructor Details
-
ProxyModuleDefinition
- Throws:
IOException
-
ProxyModuleDefinition
public ProxyModuleDefinition(ClassLoader classLoader, List<ManifestProxy.SeparatorMappings> mappings) throws IOException - Throws:
IOException
-
-
Method Details
-
getName
Description copied from interface:ModuleDefinitionReturns the module name, usually this is the same name as the jar file name containing the module's implementation.- Specified by:
getNamein interfaceModuleDefinition- Returns:
- module name
-
getPublicInterfaces
Description copied from interface:ModuleDefinitionReturns a list of public interfaces for this module. Public interface can be packages, interfaces, or classes- Specified by:
getPublicInterfacesin interfaceModuleDefinition- Returns:
- a array of public interfaces
-
getDependencies
Description copied from interface:ModuleDefinitionReturns the list of this module's dependencies. Each dependency must be satisfied at run time for this module to function properly.- Specified by:
getDependenciesin interfaceModuleDefinition- Returns:
- list of dependencies
-
getLocations
Description copied from interface:ModuleDefinitionA Module is implemented by one to many jar files. This method returns the list of jar files implementing the module- Specified by:
getLocationsin interfaceModuleDefinition- Returns:
- the module's list of implementation jars
-
getVersion
Description copied from interface:ModuleDefinitionReturns the version of this module's implementation- Specified by:
getVersionin interfaceModuleDefinition- Returns:
- a version number
-
getImportPolicyClassName
Description copied from interface:ModuleDefinitionReturns the import policy class name. Although the implementation of this policy does not necessary have to implement the ImportPolicy, but could use another interface, it is the responsibility of the associated Repository to invoke that interface when the module is started.- Specified by:
getImportPolicyClassNamein interfaceModuleDefinition- Returns:
- Fully qualified class name that's assignable to
ImportPolicy, or null if no import policy exists.
-
getLifecyclePolicyClassName
Description copied from interface:ModuleDefinitionReturns the lifecycle policy class name. Although the implementation of this policy does not necessary have to implement the LifecyclePolicy, but could use another interface, it is the responsibility of the associated Repository to invoke that interface when the module is started.- Specified by:
getLifecyclePolicyClassNamein interfaceModuleDefinition- Returns:
- Fully qualified class name that's assignable to
LifecyclePolicy, or null if no import policy exists.
-
getManifest
Description copied from interface:ModuleDefinitionReturns the manifest file for the main module jar file- Specified by:
getManifestin interfaceModuleDefinition- Returns:
- the manifest file
-
getMetadata
Description copied from interface:ModuleDefinitionGets the metadata that describes various components and services in this module.- Specified by:
getMetadatain interfaceModuleDefinition- Returns:
- Always non-null.
-
generate
-