protected BaseFrameworkSystem () {
}
+ /**
+ * Constructor with Application instance
+ * <p>
+ * @param application Application instance
+ */
+ protected BaseFrameworkSystem (final Application application) {
+ // Call other constructor
+ this();
+
+ // Application instance must be set
+ if (null == application) {
+ // Abort here
+ throw new NullPointerException("application is null"); //NOI18N
+ }
+
+ // Set application instance
+ this.application = application;
+ }
+
/**
* Constructor with a facade
* <p>
package org.mxchange.jcore.facade;
import org.mxchange.jcore.BaseFrameworkSystem;
+import org.mxchange.jcore.application.Application;
/**
* A general manager
protected BaseFacade () {
}
+ /**
+ * Constructor with Application instance
+ * <p>
+ * @param application Application instance
+ */
+ protected BaseFacade (final Application application) {
+ // Call other constructor
+ super(application);
+ }
+
}
* @param application An instance of an Application class
*/
private ApplicationManager (final Application application) {
- // Application instance must be set
- if (null == application) {
- // Abort here
- throw new NullPointerException("application is null"); //NOI18N
- }
-
- // Set application instance
- this.setApplication(application);
+ // Invoke super constructor
+ super(application);
}
@Override