notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2102 - development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2102 - development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging
- Date: Mon, 21 Mar 2005 11:43:58 -0500
Author: niclas AT hedhman.org
Date: Mon Mar 21 11:43:58 2005
New Revision: 2102
Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericPackager.java
(contents, props changed)
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericSubFieldPackager.java
(contents, props changed)
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericValidatingPackager.java
(contents, props changed)
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/X92GenericPackager.java
(contents, props changed)
Log:
More packagers been wrapped.
Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericPackager.java
Mon Mar 21 11:43:58 2005
@@ -0,0 +1,59 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import java.io.InputStream;
+import java.io.IOException;
+
+import java.net.URL;
+import java.net.MalformedURLException;
+
+import net.dpml.logging.Logger;
+
+import net.dpml.parameters.ParameterException;
+import net.dpml.parameters.Parameters;
+
+import org.jpos.iso.ISOException;
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the GenericPackager in JPos.
+ *
+ * @metro.component name="generic-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class GenericPackager extends org.jpos.iso.packager.GenericPackager
+{
+ /**
+ * @metro.logger name="generic"
+ */
+ public GenericPackager( Logger logger, Parameters params )
+ throws ParameterException, MalformedURLException, ISOException,
IOException
+ {
+ super( resolve( params ) );
+ }
+
+ static private InputStream resolve( Parameters params )
+ throws ParameterException, MalformedURLException, IOException
+ {
+ String uri = params.getParameter( "definition-uri" );
+ URL url = new URL( uri );
+ return url.openStream();
+ }
+}
+
Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericSubFieldPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericSubFieldPackager.java
Mon Mar 21 11:43:58 2005
@@ -0,0 +1,42 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import net.dpml.logging.Logger;
+
+import org.jpos.iso.ISOException;
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the GenericSubFieldPackager in JPos.
+ *
+ * @metro.component name="generic-subfield-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class GenericSubFieldPackager extends
org.jpos.iso.packager.GenericSubFieldPackager
+{
+ /**
+ * @metro.logger name="generic-subfield"
+ */
+ public GenericSubFieldPackager( Logger logger )
+ throws ISOException
+ {
+ super();
+ }
+}
+
Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericValidatingPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/GenericValidatingPackager.java
Mon Mar 21 11:43:58 2005
@@ -0,0 +1,60 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import java.io.InputStream;
+import java.io.IOException;
+
+import java.net.URL;
+import java.net.MalformedURLException;
+
+import net.dpml.logging.Logger;
+
+import net.dpml.parameters.ParameterException;
+import net.dpml.parameters.Parameters;
+
+import org.jpos.iso.ISOException;
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the GenericValidatingPackager in JPos.
+ *
+ * @metro.component name="generic-validating-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ * @metro.service type="org.jpos.iso.ISOValidator"
+ */
+public class GenericValidatingPackager extends
org.jpos.iso.packager.GenericValidatingPackager
+{
+ /**
+ * @metro.logger name="generic-validating"
+ */
+ public GenericValidatingPackager( Logger logger, Parameters params )
+ throws ParameterException, MalformedURLException, ISOException,
IOException
+ {
+ super( resolve( params ) );
+ }
+
+ static private InputStream resolve( Parameters params )
+ throws ParameterException, MalformedURLException, IOException
+ {
+ String uri = params.getParameter( "definition-uri" );
+ URL url = new URL( uri );
+ return url.openStream();
+ }
+}
+
Added:
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/X92GenericPackager.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging/X92GenericPackager.java
Mon Mar 21 11:43:58 2005
@@ -0,0 +1,59 @@
+/*
+* Copyright 2004-2005 Niclas Hedhman.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.iso8583.parts.packaging;
+
+import java.io.InputStream;
+import java.io.IOException;
+
+import java.net.URL;
+import java.net.MalformedURLException;
+
+import net.dpml.logging.Logger;
+
+import net.dpml.parameters.ParameterException;
+import net.dpml.parameters.Parameters;
+
+import org.jpos.iso.ISOException;
+import org.jpos.iso.ISOPackager;
+
+/** Metro Wrapper for the X92Packager in JPos.
+ *
+ * @metro.component name="x92-generic-packager" lifestyle="singleton"
+ * @metro.service type="org.jpos.iso.ISOPackager"
+ */
+public class X92GenericPackager extends
org.jpos.iso.packager.X92GenericPackager
+{
+ /**
+ * @metro.logger name="x92-generic"
+ */
+ public X92GenericPackager( Logger logger, Parameters params )
+ throws ParameterException, MalformedURLException, ISOException,
IOException
+ {
+ super( resolve( params ) );
+ }
+
+ static private InputStream resolve( Parameters params )
+ throws ParameterException, MalformedURLException, IOException
+ {
+ String uri = params.getParameter( "definition-uri" );
+ URL url = new URL( uri );
+ return url.openStream();
+ }
+}
+
- svn commit: r2102 - development/planet/users/niclas/iso8583/channels/parts/src/main/net/dpml/iso8583/parts/packaging, niclas, 03/20/2005
Archive powered by MHonArc 2.6.24.