Details
diff --git a/api/src/main/java/com/ning/billing/config/IBusinessConfig.java b/api/src/main/java/com/ning/billing/config/IBusinessConfig.java
new file mode 100644
index 0000000..801efaa
--- /dev/null
+++ b/api/src/main/java/com/ning/billing/config/IBusinessConfig.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2010-2011 Ning, Inc.
+ *
+ * Ning licenses this file to you under the Apache License, version 2.0
+ * (the "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ */
+
+package com.ning.billing.config;
+
+public interface IBusinessConfig {
+
+}
diff --git a/api/src/main/java/com/ning/billing/config/IKillbillConfig.java b/api/src/main/java/com/ning/billing/config/IKillbillConfig.java
new file mode 100644
index 0000000..51207fa
--- /dev/null
+++ b/api/src/main/java/com/ning/billing/config/IKillbillConfig.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2010-2011 Ning, Inc.
+ *
+ * Ning licenses this file to you under the Apache License, version 2.0
+ * (the "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ */
+
+package com.ning.billing.config;
+
+public interface IKillbillConfig {
+
+}
diff --git a/api/src/main/java/com/ning/billing/lifecycle/IService.java b/api/src/main/java/com/ning/billing/lifecycle/IService.java
new file mode 100644
index 0000000..83c67db
--- /dev/null
+++ b/api/src/main/java/com/ning/billing/lifecycle/IService.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2010-2011 Ning, Inc.
+ *
+ * Ning licenses this file to you under the Apache License, version 2.0
+ * (the "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ */
+
+package com.ning.billing.lifecycle;
+
+import com.ning.billing.config.IBusinessConfig;
+import com.ning.billing.config.IKillbillConfig;
+
+public interface IService {
+
+ public static class ServiceException extends Exception {
+
+ private static final long serialVersionUID = 176191207L;
+
+ public ServiceException() {
+ super();
+ }
+
+ public ServiceException(String msg, Throwable e) {
+ super(msg, e);
+ }
+
+ public ServiceException(String msg) {
+ super(msg);
+ }
+
+ public ServiceException(Throwable msg) {
+ super(msg);
+ }
+ }
+
+ /**
+ *
+ * @param businessConfig business configuration
+ * @param killbillConfig service detail configuration
+ * @throws ServiceException
+ *
+ * Initialize the service prior to start
+ */
+ public void initialize(IBusinessConfig businessConfig, IKillbillConfig killbillConfig)
+ throws ServiceException;
+
+ /**
+ *
+ * @throws ServiceException
+ *
+ * Start the given service
+ */
+ public void start()
+ throws ServiceException;
+
+ /**
+ * Stop the given service
+ *
+ * @throws ServiceException
+ */
+ public void stop()
+ throws ServiceException;
+
+}