Author: david.lloyd(a)jboss.com
Date: 2009-11-04 19:20:35 -0500 (Wed, 04 Nov 2009)
New Revision: 5585
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/EndpointImpl.java
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSink.java
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSource.java
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java
Log:
Javadoc and copyright
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/EndpointImpl.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/EndpointImpl.java 2009-11-04
23:31:39 UTC (rev 5584)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/EndpointImpl.java 2009-11-05
00:20:35 UTC (rev 5585)
@@ -104,6 +104,9 @@
private static final Logger log =
Logger.getLogger("org.jboss.remoting.endpoint");
+ /**
+ * The name of this endpoint.
+ */
private final String name;
/**
@@ -112,14 +115,39 @@
*/
private final Object serviceRegistrationLock = new Object();
+ /**
+ * The currently registered service listeners. Protected by {@link
#serviceRegistrationLock}.
+ */
private final ConcurrentMap<Registration, ServiceRegistrationListener>
serviceListenerRegistrations = concurrentIdentityMap(serviceRegistrationLock);
+ /**
+ * The currently registered services. Protected by {@link
#serviceRegistrationLock}.
+ */
private final ConcurrentMap<String, ConcurrentMap<String,
ServiceRegistration>> registeredLocalServices =
concurrentMap(serviceRegistrationLock);
+ /**
+ * The currently registered connection providers.
+ */
private final ConcurrentMap<String, ConnectionProvider<?>>
connectionProviders = concurrentMap();
+ /**
+ * The provider maps for the different protocol service types.
+ */
private final ConcurrentMap[] providerMaps = new
ConcurrentMap[ProtocolServiceType.getServiceTypes().length];
+ /**
+ * The single per-endpoint connection provider context instance.
+ */
private final ConnectionProviderContext connectionProviderContext;
+ /**
+ * The special connection handler instance corresponding to {@link
#loopbackConnection}.
+ */
private final ConnectionHandler loopbackConnectionHandler;
+ /**
+ * The special loopback connection instance for local request handlers which are
created via {@link #createLocalRequestHandler(RequestListener, Class, Class)} and
+ * not tied to a service. This connection cannot be closed.
+ */
private final Connection loopbackConnection;
+ /**
+ * The special connection handler context corresponding to {@link
#loopbackConnectionHandler}.
+ */
private final ConnectionHandlerContext localConnectionContext;
private static final EndpointPermission CREATE_ENDPOINT_PERM = new
EndpointPermission("createEndpoint");
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSink.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSink.java 2009-11-04
23:31:39 UTC (rev 5584)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSink.java 2009-11-05
00:20:35 UTC (rev 5585)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.remoting3.stream;
import java.io.Closeable;
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSource.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSource.java 2009-11-04
23:31:39 UTC (rev 5584)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/ObjectSource.java 2009-11-05
00:20:35 UTC (rev 5585)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.remoting3.stream;
import java.io.Closeable;
Modified:
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java
===================================================================
---
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java 2009-11-04
23:31:39 UTC (rev 5584)
+++
remoting3/trunk/jboss-remoting/src/main/java/org/jboss/remoting3/stream/Streams.java 2009-11-05
00:20:35 UTC (rev 5585)
@@ -1,3 +1,25 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.remoting3.stream;
import java.io.EOFException;