Skip to Content.
Sympa Menu

notify-dpml - r1195 - in trunk/main/metro/part/api/src/main/net/dpml: . part

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1195 - in trunk/main/metro/part/api/src/main/net/dpml: . part
  • Date: Thu, 16 Mar 2006 21:05:46 +0100

Author: mcconnell
Date: 2006-03-16 21:05:44 +0100 (Thu, 16 Mar 2006)
New Revision: 1195

Removed:
trunk/main/metro/part/api/src/main/net/dpml/component/

trunk/main/metro/part/api/src/main/net/dpml/part/ActivationPolicyBeanInfo.java
Log:


Deleted:
trunk/main/metro/part/api/src/main/net/dpml/part/ActivationPolicyBeanInfo.java
===================================================================
---
trunk/main/metro/part/api/src/main/net/dpml/part/ActivationPolicyBeanInfo.java
2006-03-16 19:56:47 UTC (rev 1194)
+++
trunk/main/metro/part/api/src/main/net/dpml/part/ActivationPolicyBeanInfo.java
2006-03-16 20:05:44 UTC (rev 1195)
@@ -1,73 +0,0 @@
-/*
- * Copyright (c) 2005 Stephen J. McConnell
- *
- * 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.part;
-
-import java.beans.Expression;
-import java.beans.BeanDescriptor;
-import java.beans.DefaultPersistenceDelegate;
-import java.beans.SimpleBeanInfo;
-import java.beans.Encoder;
-
-/**
- * Utility class containing a persistence encoding delegate for
- * the ActivationPolicy class.
- *
- * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a>
- * @version @PROJECT-VERSION@
- */
-public final class ActivationPolicyBeanInfo extends SimpleBeanInfo
-{
- private static final BeanDescriptor BEAN_DESCRIPTOR =
setupBeanDescriptor();
-
- /**
- * Creation of a new bean descriptor.
- * @return the bean descriptor
- */
- public BeanDescriptor getBeanDescriptor()
- {
- return BEAN_DESCRIPTOR;
- }
-
- private static BeanDescriptor setupBeanDescriptor()
- {
- BeanDescriptor descriptor = new BeanDescriptor(
ActivationPolicy.class );
- descriptor.setValue(
- "persistenceDelegate",
- new ActivationPolicyPersistenceDelegate() );
- return descriptor;
- }
-
- /**
- * The persistence delegate.
- */
- private static class ActivationPolicyPersistenceDelegate extends
DefaultPersistenceDelegate
- {
- /**
- * Return the expression.
- * @param old the old instance
- * @param encoder the XML encoder
- * @return the expression
- */
- public Expression instantiate( Object old, Encoder encoder )
- {
- ActivationPolicy policy = (ActivationPolicy) old;
- return new Expression( policy, ActivationPolicy.class, "parse",
new Object[]{policy.getName()} );
- }
- }
-}




  • r1195 - in trunk/main/metro/part/api/src/main/net/dpml: . part, mcconnell at BerliOS, 03/16/2006

Archive powered by MHonArc 2.6.24.

Top of Page