Skip to content
Permalink
Browse files

Improved: Remove unnecessary declared exceptions for ‘ContainerExcept…

…ion’

(OFBIZ-10938)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857913 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 21, 2019
1 parent 3b67829 commit 5982be81612cd2b53693c405f4e24cf0c95c3d6d
@@ -83,7 +83,7 @@ public void init(List<StartupCommand> ofbizCommands, String name, String configF
/**
* @see org.apache.ofbiz.base.container.Container#start()
*/
public boolean start() throws ContainerException {
public boolean start() {
return loaded.get();
}

@@ -92,9 +92,8 @@ public boolean start() throws ContainerException {
* and set the classloader as the context classloader
*
* @param componentsClassPath a list of classpaths for all components
* @throws ContainerException
*/
private void loadClassPathForAllComponents(List<Classpath> componentsClassPath) throws ContainerException {
private void loadClassPathForAllComponents(List<Classpath> componentsClassPath) {
List<URL> allComponentUrls = new ArrayList<>();
for(Classpath classPath : componentsClassPath) {
try {
@@ -365,7 +364,7 @@ private Classpath buildClasspathFromComponentConfig(ComponentConfig config) thro
/**
* @see org.apache.ofbiz.base.container.Container#stop()
*/
public void stop() throws ContainerException {
public void stop() {
}

public String getName() {
@@ -147,7 +147,7 @@ public boolean start() throws ContainerException {
return true;
}

public void stop() throws ContainerException {
public void stop() {
try {
tomcat.stop();
} catch (LifecycleException e) {
@@ -45,7 +45,7 @@ public void init(List<StartupCommand> ofbizCommands, String name, String configF
}

@Override
public boolean start() throws ContainerException {
public boolean start() {
if (UtilValidate.isEmpty(preloadedDelegatorNames)) {
return true;
}
@@ -58,7 +58,7 @@ public boolean start() throws ContainerException {
}

@Override
public void stop() throws ContainerException {
public void stop() {
}

@Override
@@ -118,12 +118,12 @@ public void init(List<StartupCommand> ofbizCommands, String name, String configF
}

@Override
public boolean start() throws ContainerException {
public boolean start() {
return true;
}

@Override
public void stop() throws ContainerException {
public void stop() {
}

@Override
@@ -61,12 +61,12 @@ public void init(List<StartupCommand> ofbizCommands, String name, String configF
}

@Override
public boolean start() throws ContainerException {
public boolean start() {
return true;
}

@Override
public void stop() throws ContainerException {
public void stop() {
JobManager.shutDown();
Set<String> dispatcherNames = getAllDispatcherNames();
for (String dispatcherName: dispatcherNames) {
@@ -75,7 +75,7 @@
private String name;

@Override
public void init(List<StartupCommand> ofbizCommands, String name, String configFile) throws ContainerException {
public void init(List<StartupCommand> ofbizCommands, String name, String configFile) {
this.name = name;
this.configFile = configFile;
this.stores = new LinkedHashMap<>();
@@ -126,7 +126,7 @@ public boolean start() throws ContainerException {
}

@Override
public void stop() throws ContainerException {
public void stop() {
// stop the poller
this.pollTimer.shutdown();
Debug.logWarning("stop JavaMail poller", module);
@@ -174,7 +174,8 @@ public boolean start() throws ContainerException {
return true;
}

public void stop() throws ContainerException {
@Override
public void stop() {
remote.deregister();
}

@@ -102,7 +102,7 @@ public boolean start() throws ContainerException {
return true;
}

public void stop() throws ContainerException {
public void stop() {
}

public String getName() {

0 comments on commit 5982be8

Please sign in to comment.
You can’t perform that action at this time.