Interface DeployableFactory
-
- All Known Implementing Classes:
DefaultDeployableFactory
public interface DeployableFactory
Factory to create Deployable instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Deployable
createDeployable(String containerId, String deployableLocation, DeployableType deployableType)
Creates an Deployable instance, wrapping a file or a directory.boolean
isDeployableRegistered(String containerId, DeployableType deployableType)
Checks if the deployable specified by the deployable type is registered for a specific container.void
registerDeployable(String containerId, DeployableType deployableType, Class<? extends Deployable> deployableClass)
Registers a deployable implementation against a container.
-
-
-
Method Detail
-
registerDeployable
void registerDeployable(String containerId, DeployableType deployableType, Class<? extends Deployable> deployableClass)
Registers a deployable implementation against a container.- Parameters:
containerId
- the container id attached to this deployable classdeployableType
- the type to differentiate this deployable from others for the specified containerdeployableClass
- the deployable implementation class to register
-
isDeployableRegistered
boolean isDeployableRegistered(String containerId, DeployableType deployableType)
Checks if the deployable specified by the deployable type is registered for a specific container.- Parameters:
containerId
- the container id attached to the deployable type classdeployableType
- the type to differentiate this deployable from others for the specified container- Returns:
- true if the specified deployable is already registered or false otherwise
-
createDeployable
Deployable createDeployable(String containerId, String deployableLocation, DeployableType deployableType)
Creates an Deployable instance, wrapping a file or a directory.- Parameters:
containerId
- the container id for which to create the deployable fordeployableLocation
- the location of the deployable being wrapped, which must point to a file or a directory (for an expanded deployable)deployableType
- the deployable type to create- Returns:
- the
Deployable
instance
-
-