Forge - Parent 2.0.0.Alpha1

org.jboss.forge.container.impl
Class AddonImpl

java.lang.Object
  extended by org.jboss.forge.container.impl.AddonImpl
All Implemented Interfaces:
Addon

public class AddonImpl
extends Object
implements Addon

Author:
Lincoln Baxter, III

Constructor Summary
AddonImpl(LockManager lock, AddonId id)
           
 
Method Summary
 boolean canBeStarted()
           
 boolean equals(Object obj)
           
 ClassLoader getClassLoader()
          Get the ClassLoader containing the resources of this Addon.
 Set<AddonDependency> getDependencies()
          Get the Set of AddonDependency for this Addon (never null.)
 Future<Void> getFuture()
          Return the Future representing the boot-up sequence for this Addon instance.
 AddonId getId()
          Get the ID of this Addon.
 Set<AddonDependency> getMissingDependencies()
           
 org.jboss.modules.Module getModule()
           
 AddonModuleLoader getModuleLoader()
           
 Set<AddonDependency> getMutableDependencies()
           
 AddonRepository getRepository()
          Get the AddonRepository from which this Addon was loaded.
 AddonRunnable getRunnable()
           
 ServiceRegistry getServiceRegistry()
          Get the ServiceRegistry containing services provided by this Addon.
 AddonStatus getStatus()
          Get the AddonStatus of this Addon.
 int hashCode()
           
 void reset()
           
 void setDependencies(Set<AddonDependency> dependencies)
           
 void setFuture(Future<Void> future)
           
 void setMissingDependencies(Set<AddonDependency> missingDependencies)
           
 Addon setModule(org.jboss.modules.Module module)
           
 void setModuleLoader(AddonModuleLoader moduleLoader)
           
 void setRepository(AddonRepository repository)
           
 void setRunnable(AddonRunnable runnable)
           
 Addon setServiceRegistry(ServiceRegistry registry)
           
 Addon setStatus(AddonStatus status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddonImpl

public AddonImpl(LockManager lock,
                 AddonId id)
Method Detail

canBeStarted

public boolean canBeStarted()

reset

public void reset()

getId

public AddonId getId()
Description copied from interface: Addon
Get the ID of this Addon.

Specified by:
getId in interface Addon

getDependencies

public Set<AddonDependency> getDependencies()
Description copied from interface: Addon
Get the Set of AddonDependency for this Addon (never null.)

Specified by:
getDependencies in interface Addon

getMutableDependencies

public Set<AddonDependency> getMutableDependencies()

setDependencies

public void setDependencies(Set<AddonDependency> dependencies)

getClassLoader

public ClassLoader getClassLoader()
Description copied from interface: Addon
Get the ClassLoader containing the resources of this Addon.

Specified by:
getClassLoader in interface Addon

getModule

public org.jboss.modules.Module getModule()

setModule

public Addon setModule(org.jboss.modules.Module module)

getModuleLoader

public AddonModuleLoader getModuleLoader()

setModuleLoader

public void setModuleLoader(AddonModuleLoader moduleLoader)

getRepository

public AddonRepository getRepository()
Description copied from interface: Addon
Get the AddonRepository from which this Addon was loaded.

Specified by:
getRepository in interface Addon

setRepository

public void setRepository(AddonRepository repository)

getServiceRegistry

public ServiceRegistry getServiceRegistry()
Description copied from interface: Addon
Get the ServiceRegistry containing services provided by this Addon.

Specified by:
getServiceRegistry in interface Addon

setServiceRegistry

public Addon setServiceRegistry(ServiceRegistry registry)

getStatus

public AddonStatus getStatus()
Description copied from interface: Addon
Get the AddonStatus of this Addon.

Specified by:
getStatus in interface Addon

setStatus

public Addon setStatus(AddonStatus status)

setMissingDependencies

public void setMissingDependencies(Set<AddonDependency> missingDependencies)

getMissingDependencies

public Set<AddonDependency> getMissingDependencies()

getFuture

public Future<Void> getFuture()
Description copied from interface: Addon
Return the Future representing the boot-up sequence for this Addon instance. Returns null if the Addon is not starting, AddonStatus.isStarted() or AddonStatus.isFailed()

Specified by:
getFuture in interface Addon

setFuture

public void setFuture(Future<Void> future)

getRunnable

public AddonRunnable getRunnable()

setRunnable

public void setRunnable(AddonRunnable runnable)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Forge - Parent 2.0.0.Alpha1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.