KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > aop > proxy > container > AOPProxyFactoryParameters


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * published by the Free Software Foundation; either version 2.1 of
10 * the License, or (at your option) any later version.
11 *
12 * This software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this software; if not, write to the Free
19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21 */

22 package org.jboss.aop.proxy.container;
23
24 import org.jboss.aop.metadata.SimpleMetaData;
25 //import org.jboss.repository.spi.MetaDataContext;
26

27 /**
28  *
29  * @author <a HREF="kabir.khan@jboss.com">Kabir Khan</a>
30  * @version $Revision: 57019 $
31  */

32 public class AOPProxyFactoryParameters
33 {
34    private Class JavaDoc proxiedClass;
35    private Object JavaDoc target;
36    //FIXME convert back to MetaDataContext once the mc 2.0 has been released
37
//private MetaDataContext metaDataContext;
38
private Object JavaDoc metaDataContext;
39    private Class JavaDoc[] interfaces;
40    private AOPProxyFactoryMixin[] mixins;
41    private boolean objectAsSuperClass;
42    private SimpleMetaData simpleMetaData;
43    private ContainerCache containerCache;
44    
45    public AOPProxyFactoryParameters()
46    {
47    }
48
49    public AOPProxyFactoryParameters(
50          Class JavaDoc proxiedClass,
51          Object JavaDoc target,
52          Class JavaDoc[] interfaces,
53          AOPProxyFactoryMixin[] mixins,
54          Object JavaDoc context,
55          boolean objectAsSuperClass,
56          SimpleMetaData simpleMetaData,
57          ContainerCache containerCache)
58    {
59       this.interfaces = interfaces;
60       this.metaDataContext = context;
61       this.objectAsSuperClass = objectAsSuperClass;
62       this.proxiedClass = proxiedClass;
63       this.target = target;
64       this.simpleMetaData = simpleMetaData;
65       this.containerCache = containerCache;
66    }
67
68    public Class JavaDoc[] getInterfaces()
69    {
70       return interfaces;
71    }
72
73    public void setInterfaces(Class JavaDoc[] interfaces)
74    {
75       this.interfaces = interfaces;
76    }
77
78    public Object JavaDoc getMetaDataContext()
79    {
80       return metaDataContext;
81    }
82
83    public void setMetaDataContext(Object JavaDoc metaDataContext)
84    {
85       this.metaDataContext = metaDataContext;
86    }
87
88    public boolean isObjectAsSuperClass()
89    {
90       return objectAsSuperClass;
91    }
92
93    public void setObjectAsSuperClass(boolean objectAsSuperClass)
94    {
95       this.objectAsSuperClass = objectAsSuperClass;
96    }
97
98    public Class JavaDoc getProxiedClass()
99    {
100       return proxiedClass;
101    }
102
103    public void setProxiedClass(Class JavaDoc proxiedClass)
104    {
105       this.proxiedClass = proxiedClass;
106    }
107
108    public SimpleMetaData getSimpleMetaData()
109    {
110       return simpleMetaData;
111    }
112
113    public void setSimpleMetaData(SimpleMetaData simpleMetaData)
114    {
115       this.simpleMetaData = simpleMetaData;
116    }
117
118    public Object JavaDoc getTarget()
119    {
120       return target;
121    }
122
123    public void setTarget(Object JavaDoc target)
124    {
125       this.target = target;
126    }
127    
128    public AOPProxyFactoryMixin[] getMixins()
129    {
130       return mixins;
131    }
132
133    public void setMixins(AOPProxyFactoryMixin[] mixins)
134    {
135       this.mixins = mixins;
136    }
137
138    public ContainerCache getContainerCache()
139    {
140       return containerCache;
141    }
142
143    public void setContainerCache(ContainerCache containerCache)
144    {
145       this.containerCache = containerCache;
146    }
147    
148    
149 }
150
Popular Tags