org.jboss.forge.container.impl
Class AddonRepositoryImpl
java.lang.Object
org.jboss.forge.container.impl.AddonRepositoryImpl
- All Implemented Interfaces:
- AddonRepository, MutableAddonRepository
@Typed
public final class AddonRepositoryImpl
- extends Object
- implements MutableAddonRepository
Used to perform Addon installation/registration operations.
- Author:
- Lincoln Baxter, III, Koen Aers, George Gastaldi
forDirectory
public static MutableAddonRepository forDirectory(Forge forge,
File dir)
forDefaultDirectory
public static MutableAddonRepository forDefaultDirectory(Forge forge)
getRuntimeAPIVersion
public static String getRuntimeAPIVersion()
hasRuntimeAPIVersion
public static boolean hasRuntimeAPIVersion()
isApiCompatible
public static boolean isApiCompatible(Version runtimeVersion,
AddonId entry)
deploy
public boolean deploy(AddonId addon,
List<AddonDependencyEntry> dependencies,
List<File> resources)
- Specified by:
deploy in interface MutableAddonRepository
disable
public boolean disable(AddonId addon)
- Specified by:
disable in interface MutableAddonRepository
enable
public boolean enable(AddonId addon)
- Specified by:
enable in interface MutableAddonRepository
getAddonBaseDir
public File getAddonBaseDir(AddonId found)
- Specified by:
getAddonBaseDir in interface AddonRepository
getAddonDependencies
public Set<AddonDependencyEntry> getAddonDependencies(AddonId addon)
- Specified by:
getAddonDependencies in interface AddonRepository
getAddonDescriptor
public File getAddonDescriptor(AddonId addon)
- Specified by:
getAddonDescriptor in interface AddonRepository
getAddonResources
public List<File> getAddonResources(AddonId found)
- Specified by:
getAddonResources in interface AddonRepository
getRootDirectory
public File getRootDirectory()
- Specified by:
getRootDirectory in interface AddonRepository
isDeployed
public boolean isDeployed(AddonId addon)
- Specified by:
isDeployed in interface AddonRepository
isEnabled
public boolean isEnabled(AddonId addon)
- Specified by:
isEnabled in interface AddonRepository
listEnabled
public List<AddonId> listEnabled()
- Specified by:
listEnabled in interface AddonRepository
listEnabledCompatibleWithVersion
public List<AddonId> listEnabledCompatibleWithVersion(String version)
- Specified by:
listEnabledCompatibleWithVersion in interface AddonRepository
undeploy
public boolean undeploy(AddonId addon)
- Specified by:
undeploy in interface MutableAddonRepository
getLastModified
public Date getLastModified()
- Specified by:
getLastModified in interface AddonRepository
getVersion
public int getVersion()
- Specified by:
getVersion in interface AddonRepository
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.