Author: richard.opalka(a)jboss.com
Date: 2009-09-24 09:02:25 -0400 (Thu, 24 Sep 2009)
New Revision: 10768
Added:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxy.java
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxyFactory.java
Removed:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/util/KernelLocator.java
Modified:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/http/HttpServer.java
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/EndpointRegistry.java
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/ServerConfig.java
Log:
[JBWS-2772] removing AS IL dependency
Modified: spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/http/HttpServer.java
===================================================================
--- spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/http/HttpServer.java 2009-09-24
08:54:39 UTC (rev 10767)
+++ spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/http/HttpServer.java 2009-09-24
13:02:25 UTC (rev 10768)
@@ -33,9 +33,6 @@
*/
public interface HttpServer extends Extensible
{
- /** The default bean name */
- String BEAN_NAME = "WSHTTPServer";
-
/** Start an instance of this HTTP server */
void start();
Added: spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxy.java
===================================================================
--- spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxy.java
(rev 0)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxy.java 2009-09-24
13:02:25 UTC (rev 10768)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.ioc;
+
+/**
+ * IoC container proxy.
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ */
+public interface IoCContainerProxy
+{
+
+ /**
+ * Returns bean found in IoC registry.
+ *
+ * @param <T> bean type
+ * @param beanName bean name inside IoC registry
+ * @param clazz bean type class
+ * @return bean instance
+ * @throws IllegalArgumentException if bean is not found
+ */
+ <T> T getBean(String beanName, Class<T> clazz);
+
+}
Added:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxyFactory.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxyFactory.java
(rev 0)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/ioc/IoCContainerProxyFactory.java 2009-09-24
13:02:25 UTC (rev 10768)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.spi.ioc;
+
+import org.jboss.wsf.spi.SPIView;
+
+/**
+ * IoC container proxy factory.
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ */
+public interface IoCContainerProxyFactory extends SPIView
+{
+
+ /**
+ * Returns IoC container proxy.
+ *
+ * @return IoC container proxy
+ */
+ IoCContainerProxy getContainer();
+
+}
Modified:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/EndpointRegistry.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/EndpointRegistry.java 2009-09-24
08:54:39 UTC (rev 10767)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/EndpointRegistry.java 2009-09-24
13:02:25 UTC (rev 10768)
@@ -37,9 +37,6 @@
*/
public interface EndpointRegistry
{
- /** The bean name in the kernel registry */
- String BEAN_NAME = "WSEndpointRegistry";
-
/** Get the list of registered endpoints */
Set<ObjectName> getEndpoints();
Modified:
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/ServerConfig.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/ServerConfig.java 2009-09-24
08:54:39 UTC (rev 10767)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/management/ServerConfig.java 2009-09-24
13:02:25 UTC (rev 10768)
@@ -32,9 +32,6 @@
*/
public interface ServerConfig
{
- /** The default bean name */
- String BEAN_NAME = "WSServerConfig";
-
/** The host name that is returned if there is no other defined */
String UNDEFINED_HOSTNAME = "jbossws.undefined.host";
Deleted: spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/util/KernelLocator.java
===================================================================
---
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/util/KernelLocator.java 2009-09-24
08:54:39 UTC (rev 10767)
+++
spi/branches/ropalka/src/main/java/org/jboss/wsf/spi/util/KernelLocator.java 2009-09-24
13:02:25 UTC (rev 10768)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.wsf.spi.util;
-
-import org.jboss.kernel.Kernel;
-
-/**
- * Locate the single instance of the kernel
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 12-May-2006
- */
-public class KernelLocator
-{
- private static Kernel kernel;
-
- public static Kernel getKernel()
- {
- return KernelLocator.kernel;
- }
-
- public void setKernel(Kernel kernel)
- {
- KernelLocator.kernel = kernel;
- }
-}