KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > metadata > InvokerProxyBindingMetaData


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.metadata;
23
24
25 import org.jboss.deployment.DeploymentException;
26 import org.w3c.dom.Element JavaDoc;
27
28 /** The configuration information for invoker-proxy bindingss that may be
29  * tied to a EJB container.
30  * @author <a HREF="mailto:bill@jboss.org">Bill Burke</a>
31  * @version $Revision: 58195 $
32  */

33 public class InvokerProxyBindingMetaData extends MetaData
34 {
35    // Constants -----------------------------------------------------
36

37    // Attributes ----------------------------------------------------
38
/** The unique name of the invoker proxy binding */
39    private String JavaDoc name;
40    /** The detached invoker MBean service associated with the proxy */
41    private String JavaDoc mbean;
42    /** The class name of the org.jboss.ejb.EJBProxyFactory implementation used
43     * to create proxies for this configuration
44     */

45    private String JavaDoc proxyFactory;
46    /** An arbitary configuration to pass to the EJBProxyFactory implementation
47     */

48    private Element JavaDoc proxyFactoryConfig;
49
50    // Static --------------------------------------------------------
51

52    // Constructors --------------------------------------------------
53
public InvokerProxyBindingMetaData()
54    {
55    }
56    public InvokerProxyBindingMetaData(String JavaDoc name)
57    {
58       this.name = name;
59    }
60
61    // Public --------------------------------------------------------
62

63    /** Get the unique name of the invoker proxy binding */
64    public String JavaDoc getName()
65    {
66       return name;
67    }
68    public void setName(String JavaDoc name)
69    {
70       this.name = name;
71    }
72
73    /** Get the detached invoker MBean service name associated with the proxy */
74    public String JavaDoc getInvokerMBean()
75    {
76       return mbean;
77    }
78    public void setInvokerMBean(String JavaDoc mbean)
79    {
80       this.mbean = mbean;
81    }
82
83    /** Get the class name of the org.jboss.ejb.EJBProxyFactory implementation
84     * used to create proxies for this configuration
85     */

86    public String JavaDoc getProxyFactory()
87    {
88       return proxyFactory;
89    }
90    public void setProxyFactory(String JavaDoc factory)
91    {
92       this.proxyFactory = factory;
93    }
94
95    /** An arbitary configuration to pass to the EJBProxyFactory implementation
96     */

97    public Element JavaDoc getProxyFactoryConfig()
98    {
99       return proxyFactoryConfig;
100    }
101
102    public void setProxyFactoryConfig(Element JavaDoc child)
103    {
104       this.proxyFactoryConfig = child;
105    }
106    
107    /** Import the jboss.xml jboss/invoker-proxy-bindings/invoker-proxy-binding
108     * child elements
109     * @param element jboss/invoker-proxy-bindings/invoker-proxy-binding
110     * @throws DeploymentException
111     */

112    public void importJbossXml(Element JavaDoc element) throws DeploymentException
113    {
114       mbean = getUniqueChildContent(element, "invoker-mbean");
115       proxyFactory = getUniqueChildContent(element, "proxy-factory");
116       proxyFactoryConfig = getUniqueChild(element, "proxy-factory-config");
117    }
118 }
119
Popular Tags