[webbeans-commits] Webbeans SVN: r2954 - ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Thu Jul 2 12:19:34 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-07-02 12:19:34 -0400 (Thu, 02 Jul 2009)
New Revision: 2954
Removed:
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/jms/
Log:
Remove uneeded classes for EE resources
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceBean.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceBean.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,233 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Type;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.Set;
-
-import javassist.util.proxy.MethodHandler;
-import javassist.util.proxy.ProxyFactory;
-import javassist.util.proxy.ProxyObject;
-
-import javax.enterprise.context.Dependent;
-import javax.enterprise.context.spi.CreationalContext;
-import javax.enterprise.inject.deployment.Production;
-
-import org.jboss.webbeans.BeanManagerImpl;
-import org.jboss.webbeans.bean.RIBean;
-import org.jboss.webbeans.bootstrap.BeanDeployerEnvironment;
-import org.jboss.webbeans.injection.WBInjectionPoint;
-import org.jboss.webbeans.literal.CurrentLiteral;
-import org.jboss.webbeans.util.Proxies;
-
-/**
- * Representation of a Java EE Resource bean
- *
- * @author Pete Muir
- *
- */
-public abstract class AbstractJavaEEResourceBean<T> extends RIBean<T>
-{
-
- private static final Set<Annotation> DEFAULT_BINDINGS = new HashSet<Annotation>();
-
- static
- {
- DEFAULT_BINDINGS.add(new CurrentLiteral());
- }
-
- private final Class<? extends Annotation> deploymentType;
- private final Set<Annotation> bindings;
- private final Class<T> type;
- private final Set<Type> types;
- private final Class<T> proxyClass;
-
- /**
- * @param manager the manager used to create this bean
- * @param deploymentType the deployment type of the bean
- * @param bindings the bindings of bean
- * @param type the concrete type of the bean
- */
- protected AbstractJavaEEResourceBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, Class<T> type)
- {
- this(manager, deploymentType, bindings, type, type);
- }
-
- /**
- * @param manager the manager used to create this bean
- * @param deploymentType the deployment type of the bean
- * @param bindings the bindings of bean
- * @param type the concrete type of the bean
- */
- protected AbstractJavaEEResourceBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, Class<T> type, Type... types)
- {
- super(manager);
- if (deploymentType != null)
- {
- this.deploymentType = deploymentType;
- }
- else
- {
- this.deploymentType = Production.class;
- }
- if (bindings != null)
- {
- this.bindings = bindings;
- }
- else
- {
- this.bindings = DEFAULT_BINDINGS;
- }
- if (type == null)
- {
- throw new IllegalStateException("Type must be specified");
- }
- if (types == null || types.length == 0)
- {
- throw new IllegalStateException("Types must be specified");
- }
- this.type = type;
- this.types = new HashSet<Type>();
- this.types.addAll(Arrays.asList(types));
- ProxyFactory proxyFactory = Proxies.getProxyFactory(this.types);
-
- @SuppressWarnings("unchecked")
- Class<T> proxyClass = proxyFactory.createClass();
-
- this.proxyClass = proxyClass;
- }
-
- public Set<Annotation> getBindings()
- {
- return bindings;
- }
-
- public Class<? extends Annotation> getScopeType()
- {
- return Dependent.class;
- }
-
- public String getName()
- {
- return null;
- }
-
- public Class<? extends Annotation> getDeploymentType()
- {
- return deploymentType;
- }
-
- @Override
- public Class<T> getType()
- {
- return type;
- }
-
- public Set<Type> getTypes()
- {
- return Collections.unmodifiableSet(types);
- }
-
- @Override
- public boolean isSpecializing()
- {
- return false;
- }
-
- @Override
- public RIBean<?> getSpecializedBean()
- {
- return null;
- }
-
- @Override
- public boolean isDependent()
- {
- return true;
- }
-
- @Override
- public Set<WBInjectionPoint<?, ?>> getAnnotatedInjectionPoints()
- {
- return Collections.emptySet();
- }
-
- public boolean isNullable()
- {
- return true;
- }
-
- @Override
- public boolean isPrimitive()
- {
- return false;
- }
-
- public boolean isSerializable()
- {
- return true;
- }
-
- @Override
- public boolean isProxyable()
- {
- return false;
- }
-
- protected Class<T> getProxyClass()
- {
- return proxyClass;
- }
-
- public T create(CreationalContext<T> creationalContext)
- {
- T instance;
- try
- {
- instance = getProxyClass().newInstance();
- }
- catch (InstantiationException e)
- {
- throw new RuntimeException("Error creating proxy for " + this, e);
- }
- catch (IllegalAccessException e)
- {
- throw new RuntimeException("Error creating proxy for " + this, e);
- }
- ((ProxyObject) instance).setHandler(newMethodHandler());
- return instance;
- }
-
- protected abstract MethodHandler newMethodHandler();
-
- @Override
- public void initialize(BeanDeployerEnvironment environment)
- {
- // TODO Auto-generated method stub
-
- }
-
- public void destroy(T instance, CreationalContext<T> creationalContext)
- {
-
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceMethodHandler.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractJavaEEResourceMethodHandler.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.io.Serializable;
-import java.lang.reflect.Method;
-
-import javassist.util.proxy.MethodHandler;
-
-import org.jboss.webbeans.log.Log;
-import org.jboss.webbeans.log.Logging;
-import org.jboss.webbeans.util.Reflections;
-
-/**
- * Abstract method handler which invokes the a method on a proxied instance
- *
- * @author Pete Muir
- *
- */
-public abstract class AbstractJavaEEResourceMethodHandler implements MethodHandler, Serializable
-{
-
- private static final long serialVersionUID = -3171683636451762591L;
-
- private static final Log log = Logging.getLog(AbstractJavaEEResourceMethodHandler.class);
-
- /**
- *
- */
- public AbstractJavaEEResourceMethodHandler()
- {
- super();
- }
-
- /**
- * Lookup the execute the method on the proxied instance obtained from the
- * container
- *
- * @param self the proxy instance.
- * @param method the overridden method declared in the super class or
- * interface.
- * @param proceed the forwarder method for invoking the overridden method. It
- * is null if the overridden method is abstract or declared in the
- * interface.
- * @param args an array of objects containing the values of the arguments
- * passed in the method invocation on the proxy instance. If a
- * parameter type is a primitive type, the type of the array
- * element is a wrapper class.
- * @return the resulting value of the method invocation.
- *
- * @throws Throwable if the method invocation fails.
- */
- public Object invoke(Object self, Method method, Method proceed, Object[] args) throws Throwable
- {
- Object proxiedInstance = getProxiedInstance(null);
- Object returnValue = Reflections.invokeAndWrap(method, proxiedInstance, args);
- log.trace("Executed {0} on {1} with parameters {2} and got return value {3}", method, proxiedInstance, args, returnValue);
- return returnValue;
- }
-
- protected abstract Object getProxiedInstance(Class<?> declaringClass);
-
-}
\ No newline at end of file
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceBean.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceBean.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,51 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Type;
-import java.util.Set;
-
-import org.jboss.webbeans.BeanManagerImpl;
-
-/**
- * @author Pete Muir
- */
-public abstract class AbstractResourceBean<T> extends AbstractJavaEEResourceBean<T>
-{
-
- private final String jndiName;
- private final String mappedName;
-
- protected AbstractResourceBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, Class<T> type, String jndiName, String mappedName, Type... types)
- {
- super(manager, deploymentType, bindings, type, types);
- this.jndiName = jndiName;
- this.mappedName = mappedName;
- }
-
- public String getJndiName()
- {
- return jndiName;
- }
-
- public String getMappedName()
- {
- return mappedName;
- }
-
-}
\ No newline at end of file
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceMethodHandler.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/AbstractResourceMethodHandler.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,47 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-/**
- * @author Pete Muir
- *
- */
-public abstract class AbstractResourceMethodHandler extends AbstractJavaEEResourceMethodHandler
-{
-
- private static final long serialVersionUID = 8977780996027839558L;
-
- private final String mappedName;
- private final String jndiName;
-
- public AbstractResourceMethodHandler(String jndiName, String mappedName)
- {
- this.mappedName = mappedName;
- this.jndiName = jndiName;
- }
-
- protected String getMappedName()
- {
- return mappedName;
- }
-
- protected String getJndiName()
- {
- return jndiName;
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextBean.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextBean.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.lang.annotation.Annotation;
-import java.util.Set;
-
-import javassist.util.proxy.MethodHandler;
-
-import javax.persistence.EntityManager;
-
-import org.jboss.webbeans.BeanManagerImpl;
-
-/**
- * @author Pete Muir
- *
- */
-public class PersistenceContextBean extends AbstractJavaEEResourceBean<EntityManager>
-{
-
- private final String id;
- private final String unitName;
-
- public PersistenceContextBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, String unitName)
- {
- super(manager, deploymentType, bindings, EntityManager.class);
- this.unitName = unitName;
- this.id = createId("PersistenceContext - " + unitName);
- }
-
- @Override
- public String getId()
- {
- return id;
- }
-
- public String getUnitName()
- {
- return unitName;
- }
-
- @Override
- protected MethodHandler newMethodHandler()
- {
- return new PersistenceContextMethodHandler(getUnitName());
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextMethodHandler.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceContextMethodHandler.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import org.jboss.webbeans.CurrentManager;
-import org.jboss.webbeans.persistence.spi.JpaServices;
-
-/**
- * Proxy for persistence context Java EE resources
- *
- * @author Pete Muir
- *
- */
-public class PersistenceContextMethodHandler extends AbstractJavaEEResourceMethodHandler
-{
-
- private static final long serialVersionUID = 6111824732958101382L;
-
- private final String unitName;
-
- public PersistenceContextMethodHandler(String unitName)
- {
- this.unitName = unitName;
- }
-
- @Override
- protected Object getProxiedInstance(Class<?> declaringClass)
- {
- return CurrentManager.rootManager().getServices().get(JpaServices.class).resolvePersistenceContext(unitName);
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitBean.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitBean.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,62 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.lang.annotation.Annotation;
-import java.util.Set;
-
-import javassist.util.proxy.MethodHandler;
-
-import javax.persistence.EntityManagerFactory;
-
-import org.jboss.webbeans.BeanManagerImpl;
-
-/**
- * @author Pete Muir
- *
- */
-public class PersistenceUnitBean extends AbstractJavaEEResourceBean<EntityManagerFactory>
-{
-
- private final String id;
- private final String unitName;
-
- public PersistenceUnitBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, String unitName)
- {
- super(manager, deploymentType, bindings, EntityManagerFactory.class);
- this.unitName = unitName;
- this.id = createId("PersistenceUnit - " + unitName);
- }
-
- @Override
- public String getId()
- {
- return id;
- }
-
- public String getUnitName()
- {
- return unitName;
- }
-
- @Override
- protected MethodHandler newMethodHandler()
- {
- return new PersistenceUnitMethodHandler(getUnitName());
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitMethodHandler.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/PersistenceUnitMethodHandler.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import org.jboss.webbeans.CurrentManager;
-import org.jboss.webbeans.persistence.spi.JpaServices;
-
-/**
- * Proxy for persistence unit Java EE resources
- *
- * @author Pete Muir
- *
- */
-public class PersistenceUnitMethodHandler extends AbstractJavaEEResourceMethodHandler
-{
-
- private static final long serialVersionUID = -7936320009903622051L;
-
- private final String unitName;
-
- public PersistenceUnitMethodHandler(String unitName)
- {
- this.unitName = unitName;
- }
-
- @Override
- protected Object getProxiedInstance(Class<?> declaringClass)
- {
- return CurrentManager.rootManager().getServices().get(JpaServices.class).resolvePersistenceUnit(unitName);
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbBean.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbBean.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.lang.annotation.Annotation;
-import java.util.Set;
-
-import javassist.util.proxy.MethodHandler;
-
-import org.jboss.webbeans.BeanManagerImpl;
-
-/**
- * @author Pete Muir
- *
- */
-public class RemoteEjbBean<T> extends AbstractResourceBean<T>
-{
-
- private final String id;
- private final String ejbLink;
-
- public RemoteEjbBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, Class<T> type, String jndiName, String mappedName, String ejbLink)
- {
- super(manager, deploymentType, bindings, type, jndiName, mappedName, type);
- this.ejbLink = ejbLink;
- this.id = createId("RemoteEjb - " );
- }
-
- @Override
- public String getId()
- {
- return id;
- }
-
- public String getEjbLink()
- {
- return ejbLink;
- }
-
- @Override
- protected MethodHandler newMethodHandler()
- {
- return new RemoteEjbMethodHandler(getJndiName(), getMappedName(), getEjbLink());
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbMethodHandler.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/RemoteEjbMethodHandler.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,47 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import org.jboss.webbeans.CurrentManager;
-import org.jboss.webbeans.ejb.spi.EjbServices;
-
-/**
- * Proxy for persistence unit Java EE resources
- *
- * @author Pete Muir
- *
- */
-public class RemoteEjbMethodHandler extends AbstractResourceMethodHandler
-{
-
- private static final long serialVersionUID = 8192691377739747596L;
-
- private final String ejbLink;
-
- public RemoteEjbMethodHandler(String jndiName, String mappedName, String ejbLink)
- {
- super(jndiName, mappedName);
- this.ejbLink = ejbLink;
- }
-
- @Override
- protected Object getProxiedInstance(Class<?> declaringClass)
- {
- return CurrentManager.rootManager().getServices().get(EjbServices.class).resolveRemoteEjb(getJndiName(), getMappedName(), ejbLink);
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceBean.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceBean.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,53 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.lang.annotation.Annotation;
-import java.util.Set;
-
-import javassist.util.proxy.MethodHandler;
-
-import org.jboss.webbeans.BeanManagerImpl;
-
-/**
- * @author Pete Muir
- *
- */
-public class ResourceBean<T> extends AbstractResourceBean<T>
-{
-
- private final String id;
-
- public ResourceBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, Class<T> type, String jndiName, String mappedName)
- {
- super(manager, deploymentType, bindings, type, jndiName, mappedName, type);
- this.id = createId("Resource-");
- }
-
- @Override
- public String getId()
- {
- return id;
- }
-
- @Override
- protected MethodHandler newMethodHandler()
- {
- return new ResourceMethodHandler(getJndiName(), getMappedName());
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceMethodHandler.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/ResourceMethodHandler.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import org.jboss.webbeans.CurrentManager;
-import org.jboss.webbeans.resources.spi.ResourceServices;
-
-/**
- * Proxy for persistence unit Java EE resources
- *
- * @author Pete Muir
- *
- */
-public class ResourceMethodHandler extends AbstractResourceMethodHandler
-{
-
- private static final long serialVersionUID = -8835529913294253208L;
-
- public ResourceMethodHandler(String jndiName, String mappedName)
- {
- super(jndiName, mappedName);
- }
-
- @Override
- protected Object getProxiedInstance(Class<?> declaringClass)
- {
- return CurrentManager.rootManager().getServices().get(ResourceServices.class).resolveResource(getJndiName(), getMappedName());
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceBean.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceBean.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import java.lang.annotation.Annotation;
-import java.util.Set;
-
-import javassist.util.proxy.MethodHandler;
-
-import org.jboss.webbeans.BeanManagerImpl;
-
-/**
- * @author Pete Muir
- *
- */
-public class WebServiceBean<T> extends AbstractResourceBean<T>
-{
-
- private final String id;
- private final String wsdlLocation;
-
- public WebServiceBean(BeanManagerImpl manager, Class<? extends Annotation> deploymentType, Set<Annotation> bindings, Class<T> type, String jndiName, String mappedName, String wsdlLocation)
- {
- super(manager, deploymentType, bindings, type, jndiName, mappedName, type);
- this.wsdlLocation = wsdlLocation;
- this.id = createId("WebService - " );
- }
-
- @Override
- public String getId()
- {
- return id;
- }
-
- public String getWsdlLocation()
- {
- return wsdlLocation;
- }
-
- @Override
- protected MethodHandler newMethodHandler()
- {
- return new WebServiceMethodHandler(getJndiName(), getMappedName());
- }
-
-}
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceMethodHandler.java 2009-07-02 15:27:32 UTC (rev 2953)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ee/WebServiceMethodHandler.java 2009-07-02 16:19:34 UTC (rev 2954)
@@ -1,44 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.webbeans.bean.ee;
-
-import org.jboss.webbeans.CurrentManager;
-import org.jboss.webbeans.ws.spi.WebServices;
-
-/**
- * Proxy for persistence unit Java EE web services
- *
- * @author Pete Muir
- *
- */
-public class WebServiceMethodHandler extends AbstractResourceMethodHandler
-{
-
- private static final long serialVersionUID = 6719454070840346045L;
-
- public WebServiceMethodHandler(String jndiName, String mappedName)
- {
- super(jndiName, mappedName);
- }
-
- @Override
- protected Object getProxiedInstance(Class<?> declaringClass)
- {
- return CurrentManager.rootManager().getServices().get(WebServices.class).resolveResource(getJndiName(), getMappedName());
- }
-
-}
More information about the weld-commits
mailing list