1 //******************************************************************
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20 package org.iotivity.service.resourcecontainer;
22 import android.content.Context;
23 import java.util.List;
25 public abstract class BundleActivator {
26 protected RcsResourceContainerBundleAPI bundleAPI;
27 protected Context appContext;
29 public BundleActivator(RcsResourceContainerBundleAPI bundleAPI, Context appContext){
30 this.bundleAPI = bundleAPI;
31 this.appContext = appContext;
34 * Activates the bundle and creates all resources.
36 public abstract void activateBundle();
39 * Deactivates the bundle and destroys all resources.
41 public abstract void deactivateBundle();
45 * @param resource Instance of a BundleResource
47 public abstract void createResource(ResourceConfig resource);
51 * @param resource Instance of a BundleResource
53 public abstract void destroyResource(BundleResource resource);