1 /*
2 * Copyright 2011 FatWire Corporation. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package com.fatwire.gst.foundation.include;
17
18 import COM.FutureTense.Interfaces.ICS;
19
20 /**
21 * Interface method for including a text block into an Content Server element.
22 * This facilitates hiding of the complexities of including a piece of text from
23 * the View layer and move this into the business logic layer.
24 * <p/>
25 * Contract is that Include implementation is created in business logic layer
26 * and that it is included in the View layer. The View layer is expected to call
27 * the include(ICS) method.
28 * <p/>
29 * This interface is designed after the Command pattern.
30 *
31 * @author Dolf Dijkstra
32 * @since Apr 13, 2011
33 */
34 public interface Include {
35
36 /**
37 * @param ics the Content Server context.
38 */
39 void include(ICS ics);
40
41 }