001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.cocoon.components.flow.java;
018:
019: import java.lang.reflect.Method;
020:
021: import org.apache.avalon.framework.context.Context;
022: import org.apache.avalon.framework.logger.Logger;
023: import org.apache.avalon.framework.parameters.Parameters;
024: import org.apache.avalon.framework.service.ServiceManager;
025: import org.apache.cocoon.environment.Redirector;
026:
027: /**
028: * Helper class to associate cocoon flow informations to the continuation.
029: *
030: * @author <a href="mailto:tcurdt@apache.org">Torsten Curdt</a>
031: * @author <a href="mailto:stephan@apache.org">Stephan Michels</a>
032: * @version CVS $Id: ContinuationContext.java 433543 2006-08-22 06:22:54Z crossley $
033: */
034: public class ContinuationContext {
035:
036: private Object object;
037: private Method method;
038:
039: private Logger logger;
040: private Context avalonContext;
041: private ServiceManager manager;
042: private Redirector redirector;
043:
044: private Parameters parameters;
045:
046: public ContinuationContext() {
047: }
048:
049: public void setObject(Object object) {
050: this .object = object;
051: }
052:
053: public Object getObject() {
054: return object;
055: }
056:
057: public void setMethod(Method method) {
058: this .method = method;
059: }
060:
061: public Method getMethod() {
062: return method;
063: }
064:
065: public void setAvalonContext(Context avalonContext) {
066: this .avalonContext = avalonContext;
067: }
068:
069: public Context getAvalonContext() {
070: return avalonContext;
071: }
072:
073: public void setLogger(Logger logger) {
074: this .logger = logger;
075: }
076:
077: public Logger getLogger() {
078: return logger;
079: }
080:
081: public void setServiceManager(ServiceManager manager) {
082: this .manager = manager;
083: }
084:
085: public ServiceManager getServiceManager() {
086: return manager;
087: }
088:
089: public void setRedirector(Redirector redirector) {
090: this .redirector = redirector;
091: }
092:
093: public Redirector getRedirector() {
094: return redirector;
095: }
096:
097: public Parameters getParameters() {
098: return parameters;
099: }
100:
101: public void setParameters(Parameters parameters) {
102: this.parameters = parameters;
103: }
104: }
|