Skip to content

Commit

Permalink
Removed the remove listener method
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 6, 2013
1 parent de41a90 commit 8d5fb98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
26 changes: 12 additions & 14 deletions container-api/src/main/java/org/jboss/forge/container/Forge.java
Expand Up @@ -13,29 +13,27 @@

public interface Forge
{
public abstract Forge startAsync();
public Forge startAsync();

public abstract Forge startAsync(ClassLoader loader);
public Forge startAsync(ClassLoader loader);

public abstract Forge start();
public Forge start();

public abstract Forge start(ClassLoader loader);
public Forge start(ClassLoader loader);

public abstract Forge stop();
public Forge stop();

public abstract AddonRegistry getAddonRegistry();
public Forge setServerMode(boolean server);

public abstract Forge setAddonDir(File dir);
public Forge setAddonDir(File dir);

public abstract Forge setServerMode(boolean server);
public File getAddonDir();

public abstract File getAddonDir();
public AddonRegistry getAddonRegistry();

public abstract AddonRepository getRepository();
public AddonRepository getRepository();

public abstract Forge registerContainerLifecycleListener(ContainerLifecycleListener listener);
public String getVersion();

public abstract Forge unregisterContainerLifecycleListener(ContainerLifecycleListener listener);

public abstract String getVersion();
public Forge addContainerLifecycleListener(ContainerLifecycleListener listener);
}
Expand Up @@ -206,16 +206,9 @@ public String getVersion()
}

@Override
public Forge registerContainerLifecycleListener(ContainerLifecycleListener listener)
public Forge addContainerLifecycleListener(ContainerLifecycleListener listener)
{
registeredListeners.add(listener);
return this;
}

@Override
public Forge unregisterContainerLifecycleListener(ContainerLifecycleListener listener)
{
registeredListeners.remove(listener);
return this;
}
}

0 comments on commit 8d5fb98

Please sign in to comment.