[jboss-cvs] JBossAS SVN: r76810 - in projects/demos/trunk: build and 4 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 8 04:15:47 EDT 2008
Author: alesj
Date: 2008-08-08 04:15:47 -0400 (Fri, 08 Aug 2008)
New Revision: 76810
Added:
projects/demos/trunk/models/src/main/org/jboss/demos/models/old/
projects/demos/trunk/models/src/main/org/jboss/demos/models/old/Checker.java
projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfig.java
projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfigMBean.java
projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfig.java
projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfigMBean.java
projects/demos/trunk/models/src/resources/META-INF/security-beans.xml
Modified:
projects/demos/trunk/bootstrap/src/resources/META-INF/bootstrap-beans.xml
projects/demos/trunk/build/pom.xml
projects/demos/trunk/models/pom.xml
Log:
Add old ServiceSupportMBean example.
Modified: projects/demos/trunk/bootstrap/src/resources/META-INF/bootstrap-beans.xml
===================================================================
--- projects/demos/trunk/bootstrap/src/resources/META-INF/bootstrap-beans.xml 2008-08-08 06:14:46 UTC (rev 76809)
+++ projects/demos/trunk/bootstrap/src/resources/META-INF/bootstrap-beans.xml 2008-08-08 08:15:47 UTC (rev 76810)
@@ -68,15 +68,10 @@
</bean>
<!-- POJO Deployment -->
- <bean name="BeanDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer">
- <property name="type">beans</property>
- </bean>
- <bean name="KernelDeploymentDeployer" class="org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer">
- <property name="type">beans</property>
- </bean>
+ <bean name="BeanDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer"/>
+ <bean name="KernelDeploymentDeployer" class="org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer"/>
<bean name="BeanMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
<constructor><parameter class="org.jboss.kernel.Kernel"><inject bean="jboss.kernel:service=Kernel"/></parameter></constructor>
- <property name="type">beans</property>
</bean>
<!-- VFS ClassLoader -->
@@ -99,6 +94,7 @@
<classloading xmlns="urn:jboss:classloading:1.0" export-all="NON_EMPTY" import-all="true"/>
</property>
</bean>
+ <bean name="ClassLoaderClassPathDeployer" class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderClassPathDeployer"/>
<bean name="ClassLoaderDescribeDeployer" class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderDescribeDeployer">
<property name="classLoading"><inject bean="ClassLoading"/></property>
</bean>
Modified: projects/demos/trunk/build/pom.xml
===================================================================
--- projects/demos/trunk/build/pom.xml 2008-08-08 06:14:46 UTC (rev 76809)
+++ projects/demos/trunk/build/pom.xml 2008-08-08 08:15:47 UTC (rev 76810)
@@ -23,15 +23,15 @@
<properties>
<version.jboss.jbossas>5.0.0.CR1</version.jboss.jbossas>
<version.jboss.man>2.0.0.Beta12</version.jboss.man>
- <version.jboss.mdr>2.0.0.Beta15</version.jboss.mdr>
- <version.jboss.microcontainer>2.0.0.Beta16</version.jboss.microcontainer>
+ <version.jboss.mdr>2.0.0-SNAPSHOT</version.jboss.mdr>
+ <version.jboss.microcontainer>2.0.0-SNAPSHOT</version.jboss.microcontainer>
<version.jboss.deployers>2.0.0-SNAPSHOT</version.jboss.deployers>
<version.jboss.classloader>2.0.0-SNAPSHOT</version.jboss.classloader>
<version.jboss.common.core>2.2.7.GA</version.jboss.common.core>
<version.jboss.common.logging.spi>2.0.5.GA</version.jboss.common.logging.spi>
<version.jboss.common.logging.log4j>2.0.5.GA</version.jboss.common.logging.log4j>
<version.jbossxb>2.0.0.CR10</version.jbossxb>
- <version.jboss.aop>2.0.0.CR11</version.jboss.aop>
+ <version.jboss.aop>2.0.0.CR15</version.jboss.aop>
<version.jboss.vfs>2.0.0-SNAPSHOT</version.jboss.vfs>
<version.org.jboss.test>1.0.5.GA</version.org.jboss.test>
<version.junit>4.4</version.junit>
@@ -201,11 +201,6 @@
-->
<dependency>
- <groupId>org.jboss.jbossas</groupId>
- <artifactId>jboss-as-system-jmx</artifactId>
- <version>${version.jboss.jbossas}</version>
- </dependency>
- <dependency>
<groupId>org.jboss.microcontainer</groupId>
<artifactId>jboss-dependency</artifactId>
<version>${version.jboss.microcontainer}</version>
@@ -338,6 +333,11 @@
</dependency>
<dependency>
<groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-system-jmx</artifactId>
+ <version>${version.jboss.jbossas}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-aspects</artifactId>
<version>${version.jboss.jbossas}</version>
</dependency>
Modified: projects/demos/trunk/models/pom.xml
===================================================================
--- projects/demos/trunk/models/pom.xml 2008-08-08 06:14:46 UTC (rev 76809)
+++ projects/demos/trunk/models/pom.xml 2008-08-08 08:15:47 UTC (rev 76810)
@@ -40,6 +40,10 @@
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-system-jmx</artifactId>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
Added: projects/demos/trunk/models/src/main/org/jboss/demos/models/old/Checker.java
===================================================================
--- projects/demos/trunk/models/src/main/org/jboss/demos/models/old/Checker.java (rev 0)
+++ projects/demos/trunk/models/src/main/org/jboss/demos/models/old/Checker.java 2008-08-08 08:15:47 UTC (rev 76810)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.demos.models.old;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class Checker
+{
+ private boolean loginConfigSet;
+ private boolean securityConfigSet;
+
+ public void setLoginConfig(XMLLoginConfig loginConfig)
+ {
+ this.loginConfigSet = true;
+ }
+
+ public void setSecurityConfig(SecurityConfig securityConfig)
+ {
+ this.securityConfigSet = true;
+ }
+
+ public void start()
+ {
+ if (loginConfigSet == false)
+ throw new IllegalArgumentException("Login config set not called");
+ if (securityConfigSet == false)
+ throw new IllegalArgumentException("Security config set not called");
+ }
+}
\ No newline at end of file
Added: projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfig.java
===================================================================
--- projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfig.java (rev 0)
+++ projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfig.java 2008-08-08 08:15:47 UTC (rev 76810)
@@ -0,0 +1,53 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.demos.models.old;
+
+import org.jboss.aop.microcontainer.aspects.jmx.JMX;
+import org.jboss.system.ServiceMBeanSupport;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at JMX(name = "jboss.security:service=SecurityConfig", exposedInterface = SecurityConfigMBean.class)
+public class SecurityConfig extends ServiceMBeanSupport implements SecurityConfigMBean
+{
+ /** The default configuration bean */
+ private XMLLoginConfig defaultLoginConfig;
+
+ public void startService() throws Exception
+ {
+ if (this.defaultLoginConfig != null)
+ System.out.println("defaultLoginConfig = " + defaultLoginConfig);
+ else
+ System.out.println("No default login config.");
+ }
+
+ public void stopService() throws Exception
+ {
+ System.out.println("Stopping");
+ }
+
+ public void setDefaultLoginConfig(XMLLoginConfig defaultLoginConfig)
+ {
+ this.defaultLoginConfig = defaultLoginConfig;
+ }
+}
Added: projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfigMBean.java
===================================================================
--- projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfigMBean.java (rev 0)
+++ projects/demos/trunk/models/src/main/org/jboss/demos/models/old/SecurityConfigMBean.java 2008-08-08 08:15:47 UTC (rev 76810)
@@ -0,0 +1,32 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.demos.models.old;
+
+import org.jboss.system.ServiceMBean;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface SecurityConfigMBean extends ServiceMBean
+{
+ void setDefaultLoginConfig(XMLLoginConfig defaultLoginConfig);
+}
\ No newline at end of file
Added: projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfig.java
===================================================================
--- projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfig.java (rev 0)
+++ projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfig.java 2008-08-08 08:15:47 UTC (rev 76810)
@@ -0,0 +1,42 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.demos.models.old;
+
+import org.jboss.aop.microcontainer.aspects.jmx.JMX;
+import org.jboss.system.ServiceMBeanSupport;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+ at JMX(name="jboss.security:service=XMLLoginConfig", exposedInterface=XMLLoginConfigMBean.class)
+public class XMLLoginConfig extends ServiceMBeanSupport implements XMLLoginConfigMBean
+{
+ protected void startService() throws Exception
+ {
+ System.out.println("Starting");
+ }
+
+ protected void destroyService()
+ {
+ System.out.println("Stopping");
+ }
+}
Added: projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfigMBean.java
===================================================================
--- projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfigMBean.java (rev 0)
+++ projects/demos/trunk/models/src/main/org/jboss/demos/models/old/XMLLoginConfigMBean.java 2008-08-08 08:15:47 UTC (rev 76810)
@@ -0,0 +1,31 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.demos.models.old;
+
+import org.jboss.system.ServiceMBean;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface XMLLoginConfigMBean extends ServiceMBean
+{
+}
Added: projects/demos/trunk/models/src/resources/META-INF/security-beans.xml
===================================================================
--- projects/demos/trunk/models/src/resources/META-INF/security-beans.xml (rev 0)
+++ projects/demos/trunk/models/src/resources/META-INF/security-beans.xml 2008-08-08 08:15:47 UTC (rev 76810)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Security beans
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <bean name="XMLLoginConfig" class="org.jboss.demos.models.old.XMLLoginConfig"/>
+
+ <bean name="SecurityConfig" class="org.jboss.demos.models.old.SecurityConfig">
+ <property name="defaultLoginConfig"><inject bean="XMLLoginConfig"/></property>
+ </bean>
+
+ <bean name="SecurityChecker" class="org.jboss.demos.models.old.Checker">
+ <property name="loginConfig"><inject bean="jboss.security:service=XMLLoginConfig"/></property>
+ <property name="securityConfig"><inject bean="jboss.security:service=SecurityConfig"/></property>
+ </bean>
+
+</deployment>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list