KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > components > flow > java > ContinuationContext


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
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 org.apache.cocoon.components.flow.java;
17
18 import java.lang.reflect.Method JavaDoc;
19
20 import org.apache.avalon.framework.context.Context;
21 import org.apache.avalon.framework.logger.Logger;
22 import org.apache.avalon.framework.parameters.Parameters;
23 import org.apache.avalon.framework.service.ServiceManager;
24 import org.apache.cocoon.environment.Redirector;
25
26 /**
27  * Helper class to associate cocoon flow informations to the continuation.
28  *
29  * @author <a HREF="mailto:tcurdt@apache.org">Torsten Curdt</a>
30  * @author <a HREF="mailto:stephan@apache.org">Stephan Michels</a>
31  * @version CVS $Id: ContinuationContext.java 56693 2004-11-05 20:22:33Z tcurdt $
32  */

33 public class ContinuationContext {
34
35     private Object JavaDoc object;
36     private Method JavaDoc method;
37
38     private Logger logger;
39     private Context avalonContext;
40     private ServiceManager manager;
41     private Redirector redirector;
42     
43     private Parameters parameters;
44
45     public ContinuationContext() {
46     }
47
48     public void setObject(Object JavaDoc object) {
49         this.object = object;
50     }
51
52     public Object JavaDoc getObject() {
53         return object;
54     }
55
56     public void setMethod(Method JavaDoc method) {
57         this.method = method;
58     }
59
60     public Method JavaDoc getMethod() {
61         return method;
62     }
63
64     public void setAvalonContext(Context avalonContext) {
65         this.avalonContext = avalonContext;
66     }
67
68     public Context getAvalonContext() {
69         return avalonContext;
70     }
71
72     public void setLogger(Logger logger) {
73         this.logger = logger;
74     }
75
76     public Logger getLogger() {
77         return logger;
78     }
79     
80     public void setServiceManager(ServiceManager manager) {
81         this.manager = manager;
82     }
83
84     public ServiceManager getServiceManager() {
85         return manager;
86     }
87
88     public void setRedirector(Redirector redirector) {
89         this.redirector = redirector;
90     }
91  
92     public Redirector getRedirector() {
93         return redirector;
94     }
95     
96     public Parameters getParameters() {
97         return parameters;
98     }
99     
100     public void setParameters(Parameters parameters) {
101         this.parameters = parameters;
102     }
103 }
104
Popular Tags