[jboss-cvs] JBossAS SVN: r90915 - in branches/Branch_5_x: client and 5 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jul 7 19:13:47 EDT 2009
Author: scott.stark at jboss.org
Date: 2009-07-07 19:13:47 -0400 (Tue, 07 Jul 2009)
New Revision: 90915
Added:
branches/Branch_5_x/profileservice/src/assembly/
branches/Branch_5_x/profileservice/src/assembly/client.xml
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/package.html
Removed:
branches/Branch_5_x/profileservice/src/assembly/client.xml
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedComponentDelegate.java
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationDelegate.java
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/package.html
Modified:
branches/Branch_5_x/build/build-distr.xml
branches/Branch_5_x/build/build.xml
branches/Branch_5_x/client/pom.xml
branches/Branch_5_x/profileservice/build.xml
branches/Branch_5_x/profileservice/pom.xml
branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationProxyFactory.java
Log:
JBAS-7052, add a jboss-profileservice-client.jar for managed op and component delegates
Modified: branches/Branch_5_x/build/build-distr.xml
===================================================================
--- branches/Branch_5_x/build/build-distr.xml 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/build/build-distr.xml 2009-07-07 23:13:47 UTC (rev 90915)
@@ -1870,6 +1870,11 @@
<copy todir="${install.all.lib}" filtering="no">
<fileset dir="${_module.output}/lib" includes="jboss-profileservice.jar"/>
</copy>
+ <copy todir="${install.client}" filtering="no">
+ <fileset dir="${_module.output}/lib">
+ <include name="jboss-profileservice-client.jar"/>
+ </fileset>
+ </copy>
<!-- Copy the profileservice hdscanner bean to deploy -->
<copy todir="${install.server}/all/deploy/"
file="${_module.output}/resources/hdscanner-jboss-beans.xml" />
Modified: branches/Branch_5_x/build/build.xml
===================================================================
--- branches/Branch_5_x/build/build.xml 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/build/build.xml 2009-07-07 23:13:47 UTC (rev 90915)
@@ -924,6 +924,7 @@
<include name="jboss-deployers-client-spi.jar"/>
<include name="jbossjts.jar"/>
<include name="jbossjts-integration.jar"/>
+ <include name="jboss-profileservice-client.jar"/>
<!-- client excludes -->
<exclude name="jbossws-native-client.jar"/>
<exclude name="${jbossall.client.filename}"/>
Modified: branches/Branch_5_x/client/pom.xml
===================================================================
--- branches/Branch_5_x/client/pom.xml 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/client/pom.xml 2009-07-07 23:13:47 UTC (rev 90915)
@@ -217,7 +217,13 @@
<artifactId>jboss-as-system-jmx</artifactId>
<classifier>client</classifier>
</dependency>
-
+
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-profileservice</artifactId>
+ <classifier>client</classifier>
+ </dependency>
+
<!-- jbosscx-client.jar -->
<!-- jbosssx-as-client.jar -->
Modified: branches/Branch_5_x/profileservice/build.xml
===================================================================
--- branches/Branch_5_x/profileservice/build.xml 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/profileservice/build.xml 2009-07-07 23:13:47 UTC (rev 90915)
@@ -105,6 +105,8 @@
<property name="jar.prefix" value="jboss-profileservice"/>
<property name="javac.target" value="1.5"/>
<property name="javac.source" value="1.5"/>
+ <property name="jar.client.includes"
+ value="org/jboss/profileservice/management/client/**" />
<call target="_default:task-init"/>
</target>
@@ -151,6 +153,11 @@
</fileset>
</jar>
+ <!-- client jar -->
+ <jar jarfile="${build.lib}/${jar.client.name}" manifest="${build.etc}/default.mf">
+ <fileset dir="${build.classes}" includes="${jar.client.includes}"/>
+ </jar>
+
<!-- secured ManagementView jar -->
<jar destfile="${build.lib}/profileservice-secured.jar">
<metainf dir="${build.resources}">
Modified: branches/Branch_5_x/profileservice/pom.xml
===================================================================
--- branches/Branch_5_x/profileservice/pom.xml 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/profileservice/pom.xml 2009-07-07 23:13:47 UTC (rev 90915)
@@ -17,6 +17,23 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>assembly</id>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <phase>package</phase>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptorSourceDirectory>src/assembly</descriptorSourceDirectory>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
Copied: branches/Branch_5_x/profileservice/src/assembly (from rev 90914, branches/JBPAPP_5_0/profileservice/src/assembly)
Deleted: branches/Branch_5_x/profileservice/src/assembly/client.xml
===================================================================
--- branches/JBPAPP_5_0/profileservice/src/assembly/client.xml 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/profileservice/src/assembly/client.xml 2009-07-07 23:13:47 UTC (rev 90915)
@@ -1,16 +0,0 @@
-<assembly>
- <id>client</id>
- <formats>
- <format>jar</format>
- </formats>
- <includeBaseDirectory>false</includeBaseDirectory>
- <fileSets>
- <fileSet>
- <directory>target/classes</directory>
- <outputDirectory>/</outputDirectory>
- <includes>
- <include>org/jboss/profileservice/management/client/**</include>
- </includes>
- </fileSet>
- </fileSets>
-</assembly>
\ No newline at end of file
Copied: branches/Branch_5_x/profileservice/src/assembly/client.xml (from rev 90914, branches/JBPAPP_5_0/profileservice/src/assembly/client.xml)
===================================================================
--- branches/Branch_5_x/profileservice/src/assembly/client.xml (rev 0)
+++ branches/Branch_5_x/profileservice/src/assembly/client.xml 2009-07-07 23:13:47 UTC (rev 90915)
@@ -0,0 +1,16 @@
+<assembly>
+ <id>client</id>
+ <formats>
+ <format>jar</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>target/classes</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>org/jboss/profileservice/management/client/**</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
Deleted: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedComponentDelegate.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedComponentDelegate.java 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedComponentDelegate.java 2009-07-07 23:13:47 UTC (rev 90915)
@@ -1,144 +0,0 @@
-/*
- * 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.profileservice.management;
-
-import java.lang.annotation.Annotation;
-import java.util.Map;
-import java.util.Set;
-
-import org.jboss.deployers.spi.management.DelegatingComponentDispatcher;
-import org.jboss.managed.api.ComponentType;
-import org.jboss.managed.api.ManagedCommon;
-import org.jboss.managed.api.ManagedDeployment;
-import org.jboss.managed.api.ManagedOperation;
-import org.jboss.managed.api.ManagedProperty;
-import org.jboss.managed.api.MutableManagedComponent;
-import org.jboss.managed.api.RunState;
-
-/**
- * A ManagedComponent used to proxy and dispatch the RunState on request.
- *
- * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class ManagedComponentDelegate implements MutableManagedComponent
-{
-
- /** The serialVersionUID */
- private static final long serialVersionUID = 1L;
- private Object componentName;
- private MutableManagedComponent delegate;
- private DelegatingComponentDispatcher dispatcher;
-
- public ManagedComponentDelegate(Object componentName, MutableManagedComponent delegate, DelegatingComponentDispatcher dispatcher)
- {
- this.componentName = componentName;
- this.delegate = delegate;
- this.dispatcher = dispatcher;
- }
-
- public Map<String, Annotation> getAnnotations()
- {
- return delegate.getAnnotations();
- }
-
- public ManagedDeployment getDeployment()
- {
- return delegate.getDeployment();
- }
-
- public RunState getRunState()
- {
- return dispatcher.updateRunState(componentName);
- }
-
- public void setRunState(RunState runState)
- {
- delegate.setRunState(runState);
- }
-
- public ComponentType getType()
- {
- return delegate.getType();
- }
-
- public boolean update()
- {
- return delegate.update();
- }
-
- public String getAttachmentName()
- {
- return delegate.getAttachmentName();
- }
-
- public Object getComponentName()
- {
- return delegate.getComponentName();
- }
-
- public String getName()
- {
- return delegate.getName();
- }
-
- public String getNameType()
- {
- return delegate.getNameType();
- }
-
- public Set<ManagedOperation> getOperations()
- {
- return delegate.getOperations();
- }
-
- public void setOperations(Set<ManagedOperation> operations)
- {
- delegate.setOperations(operations);
- }
-
- public ManagedCommon getParent()
- {
- return delegate.getParent();
- }
-
- public ManagedProperty getProperty(String name)
- {
- return delegate.getProperty(name);
- }
-
- public Map<String, ManagedProperty> getProperties()
- {
- return delegate.getProperties();
- }
-
- public void setProperties(Map<String, ManagedProperty> properties)
- {
- delegate.setProperties(properties);
- }
-
- public Set<String> getPropertyNames()
- {
- return delegate.getPropertyNames();
- }
-
-}
Deleted: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationDelegate.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationDelegate.java 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationDelegate.java 2009-07-07 23:13:47 UTC (rev 90915)
@@ -1,110 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2009, 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.
- *
- * 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.profileservice.management;
-
-import org.jboss.deployers.spi.management.DelegatingComponentDispatcher;
-import org.jboss.managed.api.ManagedOperation;
-import org.jboss.managed.api.ManagedParameter;
-import org.jboss.metatype.api.types.MetaType;
-import org.jboss.metatype.api.values.MetaValue;
-
-/**
- * <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @author Scott.Stark at jboss.org
- * @version $Revision$
- */
-public class ManagedOperationDelegate
- implements ManagedOperation
-{
- /** The serialVersionUID */
- private static final long serialVersionUID = 2031110731596810579L;
- private long opID;
- private Object componentName;
- private ManagedOperation delegate;
- private DelegatingComponentDispatcher dispatcherProxy;
-
- public ManagedOperationDelegate(long opID, ManagedOperation delegate, Object componentName,
- DelegatingComponentDispatcher dispatcherProxy)
- {
- if (delegate == null)
- throw new IllegalArgumentException("Null delegate.");
- this.opID = opID;
- this.delegate = delegate;
- this.componentName = componentName;
- this.dispatcherProxy = dispatcherProxy;
- }
-
- public long getOpID()
- {
- return opID;
- }
-
- public MetaValue invoke(MetaValue... metaValues)
- {
- return dispatcherProxy.invoke(opID, componentName, delegate.getName(), metaValues);
- }
-
- public String getDescription()
- {
- return delegate.getDescription();
- }
-
- public String getName()
- {
- return delegate.getName();
- }
-
- public Impact getImpact()
- {
- return delegate.getImpact();
- }
-
- public MetaType getReturnType()
- {
- return delegate.getReturnType();
- }
-
- public ManagedParameter[] getParameters()
- {
- return delegate.getParameters();
- }
-
- public String[] getReflectionSignature()
- {
- return delegate.getReflectionSignature();
- }
-
- public <T> T getTransientAttachment(Class<T> expectedType)
- {
- return delegate.getTransientAttachment(expectedType);
- }
-
- public Object getTransientAttachment(String name)
- {
- return delegate.getTransientAttachment(name);
- }
-
- public void setTransientAttachment(String name, Object attachment)
- {
- delegate.setTransientAttachment(name, attachment);
- }
-}
Modified: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationProxyFactory.java
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationProxyFactory.java 2009-07-07 23:00:34 UTC (rev 90914)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/ManagedOperationProxyFactory.java 2009-07-07 23:13:47 UTC (rev 90915)
@@ -41,6 +41,8 @@
import org.jboss.managed.api.ManagedProperty;
import org.jboss.managed.api.MutableManagedComponent;
import org.jboss.profileservice.management.DelegatingComponentDispatcherImpl.ProxyRegistry;
+import org.jboss.profileservice.management.client.ManagedComponentDelegate;
+import org.jboss.profileservice.management.client.ManagedOperationDelegate;
import org.jboss.remoting.InvokerLocator;
/**
Copied: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client (from rev 90913, branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/management/client)
Deleted: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java
===================================================================
--- branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java 2009-07-07 22:48:11 UTC (rev 90913)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java 2009-07-07 23:13:47 UTC (rev 90915)
@@ -1,144 +0,0 @@
-/*
- * 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.profileservice.management.client;
-
-import java.lang.annotation.Annotation;
-import java.util.Map;
-import java.util.Set;
-
-import org.jboss.deployers.spi.management.DelegatingComponentDispatcher;
-import org.jboss.managed.api.ComponentType;
-import org.jboss.managed.api.ManagedCommon;
-import org.jboss.managed.api.ManagedDeployment;
-import org.jboss.managed.api.ManagedOperation;
-import org.jboss.managed.api.ManagedProperty;
-import org.jboss.managed.api.MutableManagedComponent;
-import org.jboss.managed.api.RunState;
-
-/**
- * A ManagedComponent used to proxy and dispatch the RunState on request.
- *
- * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class ManagedComponentDelegate implements MutableManagedComponent
-{
-
- /** The serialVersionUID */
- private static final long serialVersionUID = 1L;
- private Object componentName;
- private MutableManagedComponent delegate;
- private DelegatingComponentDispatcher dispatcher;
-
- public ManagedComponentDelegate(Object componentName, MutableManagedComponent delegate, DelegatingComponentDispatcher dispatcher)
- {
- this.componentName = componentName;
- this.delegate = delegate;
- this.dispatcher = dispatcher;
- }
-
- public Map<String, Annotation> getAnnotations()
- {
- return delegate.getAnnotations();
- }
-
- public ManagedDeployment getDeployment()
- {
- return delegate.getDeployment();
- }
-
- public RunState getRunState()
- {
- return dispatcher.updateRunState(componentName);
- }
-
- public void setRunState(RunState runState)
- {
- delegate.setRunState(runState);
- }
-
- public ComponentType getType()
- {
- return delegate.getType();
- }
-
- public boolean update()
- {
- return delegate.update();
- }
-
- public String getAttachmentName()
- {
- return delegate.getAttachmentName();
- }
-
- public Object getComponentName()
- {
- return delegate.getComponentName();
- }
-
- public String getName()
- {
- return delegate.getName();
- }
-
- public String getNameType()
- {
- return delegate.getNameType();
- }
-
- public Set<ManagedOperation> getOperations()
- {
- return delegate.getOperations();
- }
-
- public void setOperations(Set<ManagedOperation> operations)
- {
- delegate.setOperations(operations);
- }
-
- public ManagedCommon getParent()
- {
- return delegate.getParent();
- }
-
- public ManagedProperty getProperty(String name)
- {
- return delegate.getProperty(name);
- }
-
- public Map<String, ManagedProperty> getProperties()
- {
- return delegate.getProperties();
- }
-
- public void setProperties(Map<String, ManagedProperty> properties)
- {
- delegate.setProperties(properties);
- }
-
- public Set<String> getPropertyNames()
- {
- return delegate.getPropertyNames();
- }
-
-}
Copied: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java (from rev 90913, branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java)
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java (rev 0)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedComponentDelegate.java 2009-07-07 23:13:47 UTC (rev 90915)
@@ -0,0 +1,144 @@
+/*
+ * 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.profileservice.management.client;
+
+import java.lang.annotation.Annotation;
+import java.util.Map;
+import java.util.Set;
+
+import org.jboss.deployers.spi.management.DelegatingComponentDispatcher;
+import org.jboss.managed.api.ComponentType;
+import org.jboss.managed.api.ManagedCommon;
+import org.jboss.managed.api.ManagedDeployment;
+import org.jboss.managed.api.ManagedOperation;
+import org.jboss.managed.api.ManagedProperty;
+import org.jboss.managed.api.MutableManagedComponent;
+import org.jboss.managed.api.RunState;
+
+/**
+ * A ManagedComponent used to proxy and dispatch the RunState on request.
+ *
+ * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
+ * @version $Revision$
+ */
+public class ManagedComponentDelegate implements MutableManagedComponent
+{
+
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 1L;
+ private Object componentName;
+ private MutableManagedComponent delegate;
+ private DelegatingComponentDispatcher dispatcher;
+
+ public ManagedComponentDelegate(Object componentName, MutableManagedComponent delegate, DelegatingComponentDispatcher dispatcher)
+ {
+ this.componentName = componentName;
+ this.delegate = delegate;
+ this.dispatcher = dispatcher;
+ }
+
+ public Map<String, Annotation> getAnnotations()
+ {
+ return delegate.getAnnotations();
+ }
+
+ public ManagedDeployment getDeployment()
+ {
+ return delegate.getDeployment();
+ }
+
+ public RunState getRunState()
+ {
+ return dispatcher.updateRunState(componentName);
+ }
+
+ public void setRunState(RunState runState)
+ {
+ delegate.setRunState(runState);
+ }
+
+ public ComponentType getType()
+ {
+ return delegate.getType();
+ }
+
+ public boolean update()
+ {
+ return delegate.update();
+ }
+
+ public String getAttachmentName()
+ {
+ return delegate.getAttachmentName();
+ }
+
+ public Object getComponentName()
+ {
+ return delegate.getComponentName();
+ }
+
+ public String getName()
+ {
+ return delegate.getName();
+ }
+
+ public String getNameType()
+ {
+ return delegate.getNameType();
+ }
+
+ public Set<ManagedOperation> getOperations()
+ {
+ return delegate.getOperations();
+ }
+
+ public void setOperations(Set<ManagedOperation> operations)
+ {
+ delegate.setOperations(operations);
+ }
+
+ public ManagedCommon getParent()
+ {
+ return delegate.getParent();
+ }
+
+ public ManagedProperty getProperty(String name)
+ {
+ return delegate.getProperty(name);
+ }
+
+ public Map<String, ManagedProperty> getProperties()
+ {
+ return delegate.getProperties();
+ }
+
+ public void setProperties(Map<String, ManagedProperty> properties)
+ {
+ delegate.setProperties(properties);
+ }
+
+ public Set<String> getPropertyNames()
+ {
+ return delegate.getPropertyNames();
+ }
+
+}
Deleted: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java
===================================================================
--- branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java 2009-07-07 22:48:11 UTC (rev 90913)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java 2009-07-07 23:13:47 UTC (rev 90915)
@@ -1,110 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2009, 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.
- *
- * 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.profileservice.management.client;
-
-import org.jboss.deployers.spi.management.DelegatingComponentDispatcher;
-import org.jboss.managed.api.ManagedOperation;
-import org.jboss.managed.api.ManagedParameter;
-import org.jboss.metatype.api.types.MetaType;
-import org.jboss.metatype.api.values.MetaValue;
-
-/**
- * <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @author Scott.Stark at jboss.org
- * @version $Revision$
- */
-public class ManagedOperationDelegate
- implements ManagedOperation
-{
- /** The serialVersionUID */
- private static final long serialVersionUID = 2031110731596810579L;
- private long opID;
- private Object componentName;
- private ManagedOperation delegate;
- private DelegatingComponentDispatcher dispatcherProxy;
-
- public ManagedOperationDelegate(long opID, ManagedOperation delegate, Object componentName,
- DelegatingComponentDispatcher dispatcherProxy)
- {
- if (delegate == null)
- throw new IllegalArgumentException("Null delegate.");
- this.opID = opID;
- this.delegate = delegate;
- this.componentName = componentName;
- this.dispatcherProxy = dispatcherProxy;
- }
-
- public long getOpID()
- {
- return opID;
- }
-
- public MetaValue invoke(MetaValue... metaValues)
- {
- return dispatcherProxy.invoke(opID, componentName, delegate.getName(), metaValues);
- }
-
- public String getDescription()
- {
- return delegate.getDescription();
- }
-
- public String getName()
- {
- return delegate.getName();
- }
-
- public Impact getImpact()
- {
- return delegate.getImpact();
- }
-
- public MetaType getReturnType()
- {
- return delegate.getReturnType();
- }
-
- public ManagedParameter[] getParameters()
- {
- return delegate.getParameters();
- }
-
- public String[] getReflectionSignature()
- {
- return delegate.getReflectionSignature();
- }
-
- public <T> T getTransientAttachment(Class<T> expectedType)
- {
- return delegate.getTransientAttachment(expectedType);
- }
-
- public Object getTransientAttachment(String name)
- {
- return delegate.getTransientAttachment(name);
- }
-
- public void setTransientAttachment(String name, Object attachment)
- {
- delegate.setTransientAttachment(name, attachment);
- }
-}
Copied: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java (from rev 90913, branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java)
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java (rev 0)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/ManagedOperationDelegate.java 2009-07-07 23:13:47 UTC (rev 90915)
@@ -0,0 +1,110 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.
+ *
+ * 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.profileservice.management.client;
+
+import org.jboss.deployers.spi.management.DelegatingComponentDispatcher;
+import org.jboss.managed.api.ManagedOperation;
+import org.jboss.managed.api.ManagedParameter;
+import org.jboss.metatype.api.types.MetaType;
+import org.jboss.metatype.api.values.MetaValue;
+
+/**
+ * <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
+ * @author Scott.Stark at jboss.org
+ * @version $Revision$
+ */
+public class ManagedOperationDelegate
+ implements ManagedOperation
+{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 2031110731596810579L;
+ private long opID;
+ private Object componentName;
+ private ManagedOperation delegate;
+ private DelegatingComponentDispatcher dispatcherProxy;
+
+ public ManagedOperationDelegate(long opID, ManagedOperation delegate, Object componentName,
+ DelegatingComponentDispatcher dispatcherProxy)
+ {
+ if (delegate == null)
+ throw new IllegalArgumentException("Null delegate.");
+ this.opID = opID;
+ this.delegate = delegate;
+ this.componentName = componentName;
+ this.dispatcherProxy = dispatcherProxy;
+ }
+
+ public long getOpID()
+ {
+ return opID;
+ }
+
+ public MetaValue invoke(MetaValue... metaValues)
+ {
+ return dispatcherProxy.invoke(opID, componentName, delegate.getName(), metaValues);
+ }
+
+ public String getDescription()
+ {
+ return delegate.getDescription();
+ }
+
+ public String getName()
+ {
+ return delegate.getName();
+ }
+
+ public Impact getImpact()
+ {
+ return delegate.getImpact();
+ }
+
+ public MetaType getReturnType()
+ {
+ return delegate.getReturnType();
+ }
+
+ public ManagedParameter[] getParameters()
+ {
+ return delegate.getParameters();
+ }
+
+ public String[] getReflectionSignature()
+ {
+ return delegate.getReflectionSignature();
+ }
+
+ public <T> T getTransientAttachment(Class<T> expectedType)
+ {
+ return delegate.getTransientAttachment(expectedType);
+ }
+
+ public Object getTransientAttachment(String name)
+ {
+ return delegate.getTransientAttachment(name);
+ }
+
+ public void setTransientAttachment(String name, Object attachment)
+ {
+ delegate.setTransientAttachment(name, attachment);
+ }
+}
Deleted: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/package.html
===================================================================
--- branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/management/client/package.html 2009-07-07 22:48:11 UTC (rev 90913)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/package.html 2009-07-07 23:13:47 UTC (rev 90915)
@@ -1,54 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
- <head>
- <!-- $Id: package.html 71554 2008-04-01 13:25:40Z adrian at jboss.org $ -->
- <!--
-/*
- * 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.
- */
- -->
- </head>
-
- <body bgcolor="white">
- <h1>Profile Service Client Classes</h1>
-<p>This package contains the classes associated with the profile service
-implementation that need to be in client classpaths.
-</p>
-
- <h2>Package Specification</h2>
- <ul>
- <li><a href="javascript: alert('not available')">Not Available</a>
- </ul>
-
- <h2>Related Documentation</h2>
- <ul>
- <li><a href="javascript: alert('not available')">Not Available</a>
- </ul>
-
- <h2>Package Status</h2>
- <ul>
- <li><font color="green"><b>STABLE</b></font>
- </ul>
-
- <!-- Put @see and @since tags down here. -->
-
- </body>
-</html>
Copied: branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/package.html (from rev 90913, branches/JBPAPP_5_0/profileservice/src/main/org/jboss/profileservice/management/client/package.html)
===================================================================
--- branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/package.html (rev 0)
+++ branches/Branch_5_x/profileservice/src/main/org/jboss/profileservice/management/client/package.html 2009-07-07 23:13:47 UTC (rev 90915)
@@ -0,0 +1,54 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+ <head>
+ <!-- $Id: package.html 71554 2008-04-01 13:25:40Z adrian at jboss.org $ -->
+ <!--
+/*
+ * 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.
+ */
+ -->
+ </head>
+
+ <body bgcolor="white">
+ <h1>Profile Service Client Classes</h1>
+<p>This package contains the classes associated with the profile service
+implementation that need to be in client classpaths.
+</p>
+
+ <h2>Package Specification</h2>
+ <ul>
+ <li><a href="javascript: alert('not available')">Not Available</a>
+ </ul>
+
+ <h2>Related Documentation</h2>
+ <ul>
+ <li><a href="javascript: alert('not available')">Not Available</a>
+ </ul>
+
+ <h2>Package Status</h2>
+ <ul>
+ <li><font color="green"><b>STABLE</b></font>
+ </ul>
+
+ <!-- Put @see and @since tags down here. -->
+
+ </body>
+</html>
More information about the jboss-cvs-commits
mailing list