001/**
002 * Licensed under the Apache License, Version 2.0 (the "License");
003 * you may not use this file except in compliance with the License.
004 * You may obtain a copy of the License at
005 *
006 *     http://www.apache.org/licenses/LICENSE-2.0
007 *
008 * Unless required by applicable law or agreed to in writing, software
009 * distributed under the License is distributed on an "AS IS" BASIS,
010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
011 * See the License for the specific language governing permissions and
012 * limitations under the License.
013 */
014package org.apache.tapestry5.internal.jpa;
015
016import java.lang.annotation.Annotation;
017import java.lang.reflect.Type;
018import java.util.List;
019import java.util.Set;
020
021import javax.el.ELResolver;
022import javax.el.ExpressionFactory;
023import javax.enterprise.context.spi.Context;
024import javax.enterprise.context.spi.Contextual;
025import javax.enterprise.context.spi.CreationalContext;
026import javax.enterprise.inject.spi.AnnotatedField;
027import javax.enterprise.inject.spi.AnnotatedMember;
028import javax.enterprise.inject.spi.AnnotatedMethod;
029import javax.enterprise.inject.spi.AnnotatedParameter;
030import javax.enterprise.inject.spi.AnnotatedType;
031import javax.enterprise.inject.spi.Bean;
032import javax.enterprise.inject.spi.BeanAttributes;
033import javax.enterprise.inject.spi.BeanManager;
034import javax.enterprise.inject.spi.Decorator;
035import javax.enterprise.inject.spi.Extension;
036import javax.enterprise.inject.spi.InjectionPoint;
037import javax.enterprise.inject.spi.InjectionTarget;
038import javax.enterprise.inject.spi.InjectionTargetFactory;
039import javax.enterprise.inject.spi.InterceptionType;
040import javax.enterprise.inject.spi.Interceptor;
041import javax.enterprise.inject.spi.ObserverMethod;
042import javax.enterprise.inject.spi.ProducerFactory;
043
044public class NoopBeanManager implements BeanManager
045{
046
047    @Override
048    public Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> ctx)
049    {
050        // TODO Auto-generated method stub
051        return null;
052    }
053
054    @Override
055    public Object getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx)
056    {
057        // TODO Auto-generated method stub
058        return null;
059    }
060
061    @Override
062    public <T> CreationalContext<T> createCreationalContext(Contextual<T> contextual)
063    {
064        // TODO Auto-generated method stub
065        return null;
066    }
067
068    @Override
069    public Set<Bean<?>> getBeans(Type beanType, Annotation... qualifiers)
070    {
071        // TODO Auto-generated method stub
072        return null;
073    }
074
075    @Override
076    public Set<Bean<?>> getBeans(String name)
077    {
078        // TODO Auto-generated method stub
079        return null;
080    }
081
082    @Override
083    public Bean<?> getPassivationCapableBean(String id)
084    {
085        // TODO Auto-generated method stub
086        return null;
087    }
088
089    @Override
090    public <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans)
091    {
092        // TODO Auto-generated method stub
093        return null;
094    }
095
096    @Override
097    public void validate(InjectionPoint injectionPoint)
098    {
099        // TODO Auto-generated method stub
100
101    }
102
103    @Override
104    public void fireEvent(Object event, Annotation... qualifiers)
105    {
106        // TODO Auto-generated method stub
107
108    }
109
110    @Override
111    public <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers)
112    {
113        // TODO Auto-generated method stub
114        return null;
115    }
116
117    @Override
118    public List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
119    {
120        // TODO Auto-generated method stub
121        return null;
122    }
123
124    @Override
125    public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
126    {
127        // TODO Auto-generated method stub
128        return null;
129    }
130
131    @Override
132    public boolean isScope(Class<? extends Annotation> annotationType)
133    {
134        // TODO Auto-generated method stub
135        return false;
136    }
137
138    @Override
139    public boolean isNormalScope(Class<? extends Annotation> annotationType)
140    {
141        // TODO Auto-generated method stub
142        return false;
143    }
144
145    @Override
146    public boolean isPassivatingScope(Class<? extends Annotation> annotationType)
147    {
148        // TODO Auto-generated method stub
149        return false;
150    }
151
152    @Override
153    public boolean isQualifier(Class<? extends Annotation> annotationType)
154    {
155        // TODO Auto-generated method stub
156        return false;
157    }
158
159    @Override
160    public boolean isInterceptorBinding(Class<? extends Annotation> annotationType)
161    {
162        // TODO Auto-generated method stub
163        return false;
164    }
165
166    @Override
167    public boolean isStereotype(Class<? extends Annotation> annotationType)
168    {
169        // TODO Auto-generated method stub
170        return false;
171    }
172
173    @Override
174    public Set<Annotation> getInterceptorBindingDefinition(Class<? extends Annotation> bindingType)
175    {
176        // TODO Auto-generated method stub
177        return null;
178    }
179
180    @Override
181    public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype)
182    {
183        // TODO Auto-generated method stub
184        return null;
185    }
186
187    @Override
188    public boolean areQualifiersEquivalent(Annotation qualifier1, Annotation qualifier2)
189    {
190        // TODO Auto-generated method stub
191        return false;
192    }
193
194    @Override
195    public boolean areInterceptorBindingsEquivalent(Annotation interceptorBinding1, Annotation interceptorBinding2)
196    {
197        // TODO Auto-generated method stub
198        return false;
199    }
200
201    @Override
202    public int getQualifierHashCode(Annotation qualifier)
203    {
204        // TODO Auto-generated method stub
205        return 0;
206    }
207
208    @Override
209    public int getInterceptorBindingHashCode(Annotation interceptorBinding)
210    {
211        // TODO Auto-generated method stub
212        return 0;
213    }
214
215    @Override
216    public Context getContext(Class<? extends Annotation> scopeType)
217    {
218        // TODO Auto-generated method stub
219        return null;
220    }
221
222    @Override
223    public ELResolver getELResolver()
224    {
225        // TODO Auto-generated method stub
226        return null;
227    }
228
229    @Override
230    public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory)
231    {
232        // TODO Auto-generated method stub
233        return null;
234    }
235
236    @Override
237    public <T> AnnotatedType<T> createAnnotatedType(Class<T> type)
238    {
239        // TODO Auto-generated method stub
240        return null;
241    }
242
243    @Override
244    public <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type)
245    {
246        // TODO Auto-generated method stub
247        return null;
248    }
249
250    @Override
251    public <T> InjectionTargetFactory<T> getInjectionTargetFactory(AnnotatedType<T> annotatedType)
252    {
253        // TODO Auto-generated method stub
254        return null;
255    }
256
257    @Override
258    public <X> ProducerFactory<X> getProducerFactory(AnnotatedField<? super X> field, Bean<X> declaringBean)
259    {
260        // TODO Auto-generated method stub
261        return null;
262    }
263
264    @Override
265    public <X> ProducerFactory<X> getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> declaringBean)
266    {
267        // TODO Auto-generated method stub
268        return null;
269    }
270
271    @Override
272    public <T> BeanAttributes<T> createBeanAttributes(AnnotatedType<T> type)
273    {
274        // TODO Auto-generated method stub
275        return null;
276    }
277
278    @Override
279    public BeanAttributes<?> createBeanAttributes(AnnotatedMember<?> type)
280    {
281        // TODO Auto-generated method stub
282        return null;
283    }
284
285    @Override
286    public <T> Bean<T> createBean(BeanAttributes<T> attributes, Class<T> beanClass, InjectionTargetFactory<T> injectionTargetFactory)
287    {
288        // TODO Auto-generated method stub
289        return null;
290    }
291
292    @Override
293    public <T, X> Bean<T> createBean(BeanAttributes<T> attributes, Class<X> beanClass, ProducerFactory<X> producerFactory)
294    {
295        // TODO Auto-generated method stub
296        return null;
297    }
298
299    @Override
300    public InjectionPoint createInjectionPoint(AnnotatedField<?> field)
301    {
302        // TODO Auto-generated method stub
303        return null;
304    }
305
306    @Override
307    public InjectionPoint createInjectionPoint(AnnotatedParameter<?> parameter)
308    {
309        // TODO Auto-generated method stub
310        return null;
311    }
312
313    @Override
314    public <T extends Extension> T getExtension(Class<T> extensionClass)
315    {
316        // TODO Auto-generated method stub
317        return null;
318    }
319
320}